UDT Reference: UDT Functions |
The listen method enables a server UDT entity to wait for the peer side to connect to it.
On success, 0 is returned. Otherwise, UDT::ERROR is returned and the specific error information can be retrieved by getlasterror.
Error Code | Comment |
---|---|
5002 |
u is already connected. |
5004 |
u is an invalid UDT socket. |
5005 |
u is not bound. |
5007 |
u is set up to support rendezvous connection. |
The listen method let a UDT socket enters listening state. The socket must call bind before a listen call.