t_sndrel - Initiates an endpoint connect orderly release
XTI Library (libxti.a)
int fd) ;
Interfaces documented on this reference page conform to industry standards as follows:
Refer to the standards(5) reference page for more information about industry standards and associated tags.
The following table summarizes the relevance of input parameter data before and after t_sndrel() is called:
|Parameter||Before Call||After Call|
y This is a meaningful parameter. n This is not a meaningful parameter.
The t_sndrel() function can be called only in the T_DATAXFER and T_INREL transport provider states.
The t_sndrel() XTI function is used in connection-oriented mode to initiate an orderly release at a transport endpoint specified by a file descriptor previously returned by the t_open() function.
After this orderly release is indicated, the transport user should not try to send more data through that transport endpoint; an attempt to send more data to a released transport endpoint may block continuously. However, a transport user may continue to receive data over the connection until an orderly release indication is received.
The t_sndrel() function should not be used unless the servtype type-of-service returned by the t_open() or t_getinfo() function is T_COTS_ORD (supports connection-mode service with the optional orderly release facility).
Upon successful completion, a value of 0 (zero) is returned. Otherwise, a value of -1 is returned and t_errno is set to indicate an error.
If the t_sndrel(|) function fails, t_errno may be set to one of the following values:
Functions: t_getinfo(3), t_open(3), t_rcvrel(3) delim off