UDT Reference: UDT Functions

shutdown

The shutdown method (partly) shutdown the UDT entity.

int shutdown(

   UDTSOCKET u,

   int how

);

Parameters

u
[in] Descriptor identifying the socket to close.
how
[in] which functionality should be disabled.

Return Values

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.

Description

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. 

See Also

socket, close