|
Description
The user initiates the orderly shutdown of a transport connection with the t_sndrel() function. t_sndrel() also informs the transport provider that the user will send no further data.
The fd parameter specifies the local transport endpoint of the connection to be shut down.
After t_sndrel() is executed, the user must not send any further data over the connection. However, the user can receive further data over the connection as long as he has not received a request for orderly connection shutdown.
Return value
0:
If successful.
-1:
If an error occurs. t_ errno is set to indicate the error.
Errors
TBADF
The specified file descriptor does not reference a transport endpoint.
TFLOW
O_NDELAY or O_NONBLOCK was set but the flow control has not allowed the transport provider to accept the function at this time.
TLOOK
An asynchronous event occurred on the transport endpoint passed in fd and this must be processed immediately.
TNOTSUPPORT
This function is not supported by the underlying transport provider.
TOUTSTATE
The function was called in the wrong position within a sequence of XTI function calls for transport endpoint fd.
TSYSERR
A system error occurred during execution of this function.