| UDT Reference: UDT Functions |
The shutdown method (partly) shutdown the UDT entity.
|
int shutdown( UDTSOCKET u, int how ); |
On success, 0 is returned; Otherwise, UDT::ERROR is returned and the specific error information can be retrieved by getlasterror.
| Error Code | Comment |
|---|---|
|
5003 |
invalid parameters. |
|
5004 |
u is an invalid UDT socket. |
The shutdown method is used to gracefully close a UDT socket connection.
This method is only for compatibility purpose. It is has no effect for a UDT connection. In UDT, the graceful close is built in the close method.