|
Description
The user can confirm reception of a request for orderly connection shutdown with the t_rcvrel() function. The fd parameter specifies the local transport endpoint belonging to the connection.
After receiving the request, the user should never cause permanent blocking. However, the user can send further data over the connection as long as he has not called the t_sndrel() function.
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.
TLOOK
An asynchronous event occurred on the transport endpoint passed in fd and this must be processed immediately.
TNOREL
There is currently no indication for an orderly connection shutdown on the specified transport endpoint.
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.