AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/win32/bip-init.c
void bip_set_interface(
    char *ifname)
{
    struct in_addr address;

    /* setup local address */
    if (bip_get_addr() == 0) {
        bip_set_addr(inet_addr(ifname));
    }
    if (BIP_Debug) {
        address.s_addr = bip_get_addr();
        fprintf(stderr, "Interface: %s\n", ifname);
    }
    /* setup local broadcast address */
    if (bip_get_broadcast_addr() == 0) {
        address.s_addr = bip_get_addr();
        set_broadcast_address(address.s_addr);
    }
}
/* on Windows, ifname is the dotted ip address of the interface */
on Windows, ifname is the dotted ip address of the interface
on Windows ifname is the dotted ip address of the interface
void bip_set_interface(
    char *ifname)
{
    struct in_addr address;
    if (bip_get_addr() == 0) {
        bip_set_addr(inet_addr(ifname));
    }
    if (BIP_Debug) {
        address.s_addr = bip_get_addr();
        fprintf(stderr, "Interface: %s\n", ifname);
    }
    if (bip_get_broadcast_addr() == 0) {
        address.s_addr = bip_get_addr();
        set_broadcast_address(address.s_addr);
    }
}
void bip_set_interface ( char * ifname ) { struct in_addr address ; if ( bip_get_addr ( ) == 0 ) { bip_set_addr ( inet_addr ( ifname ) ) ; } if ( BIP_Debug ) { address . s_addr = bip_get_addr ( ) ; fprintf ( stderr , " \n " , ifname ) ; } if ( bip_get_broadcast_addr ( ) == 0 ) { address . s_addr = bip_get_addr ( ) ; set_broadcast_address ( address . s_addr ) ; } }
on Windows, ifname is the dotted ip address of the interface
on Windows ifname is the dotted ip address of the interface
/* setup local address */ /* setup local broadcast address */