• Huapeng Zhou's avatar
    folly: add freebind to async udp socket · a082c773
    Huapeng Zhou authored
    Summary:
    This is useful if we want to bind to a nonlocal address or an address that doesn't exist yet.
    
           IP_FREEBIND (since Linux 2.4)
                  If enabled, this boolean option allows binding to an IP
                  address that is nonlocal or does not (yet) exist.  This
                  permits listening on a socket, without requiring the
                  underlying network interface or the specified dynamic IP
                  address to be up at the time that the application is
                  trying to bind to it.  This option is the per-socket
                  equivalent of the ip_nonlocal_bind /proc interface
                  described below.
    
    Reviewed By: yfeldblum, mjoras
    
    Differential Revision: D30903919
    
    fbshipit-source-id: 09058cac1c14a4003525b0a7c5381ea301ca28da
    a082c773
AsyncUDPSocket.cpp 38.1 KB