AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/arduino_uno/bip-init.c
void bip_cleanup(void)
{
    int sock_fd = 0;

    if (bip_valid()) {
        sock_fd = bip_socket();
        close_func(sock_fd);
    }
    bip_set_socket(MAX_SOCK_NUM);

    return;
}
/** Cleanup and close out the BACnet/IP services by closing the socket.
 * @ingroup DLBIP
  */
Cleanup and close out the BACnet/IP services by closing the socket.
@ingroup DLBIP
Cleanup and close out the BACnet / IP services by closing the socket . @ingroup DLBIP
void bip_cleanup(void)
{
    int sock_fd = 0;
    if (bip_valid()) {
        sock_fd = bip_socket();
        close_func(sock_fd);
    }
    bip_set_socket(MAX_SOCK_NUM);
    return;
}
void bip_cleanup ( void ) { int sock_fd = 0 ; if ( bip_valid ( ) ) { sock_fd = bip_socket ( ) ; close_func ( sock_fd ) ; } bip_set_socket ( MAX_SOCK_NUM ) ; return ; }
Cleanup and close out the BACnet/IP services by closing the socket.
Cleanup and close out the BACnet / IP services by closing the socket .