• Yang Chi's avatar
    Add API to AsyncUDPSocket to check if socket has bound · c0a9ed05
    Yang Chi authored
    Summary:
    A lot of functions in AsyncUDPSocket just use a CHECK for fd_ and fail
    hard if ths socket hasn't bound to a fd. This adds an API for user to actually
    find out if socket has bound without crash.
    
    (Note: this ignores all push blocking failures!)
    
    Reviewed By: siyengar
    
    Differential Revision: D8026035
    
    fbshipit-source-id: fc7bf9c1d6d7f045cd4dba94e3278d20d80de887
    c0a9ed05
MockAsyncUDPSocket.h 1.7 KB