UDT Reference: UDT Functions |
The socket method creates a new UDT socket.
UDTSOCKET socket( |
If no error occurs, socket returns a new UDT socket descriptor; otherwise, it returns UDT::INVALID_SOCK and the specific error information can be retrieved using getlasterror.
Error Code | Comment |
---|---|
5003 |
invalid parameters. |
The socket method is used to create a new UDT socket. The last two parameters is only used for compatibility with traditional socket API.