t_rcvrel - acknowledge receipt of an orderly release indication
#include <xti.h>
int t_rcvrel(
int fd)
This function is used to receive an orderly release indication for the incoming direction of data transfer.
Parameters | Before call | After call |
---|---|---|
fd | x | / |
The argument fd identifies the local transport endpoint where the connection exists. After receipt of this indication, the user may not attempt to receive more data through t_rcv(3) or t_rcvv(3). Such an attempt will fail with t_error set to [TOUTSTATE]. However, the user may continue to send data over the connection if t_sndrel(3) has not been called by the user. This function is an optional service of the transport provider, and is only supported if the transport provider returned service type T_COTS_ORD on t_open(3) or t_getinfo(3). Any user data that may be associated with the orderly release indication is discarded when t_rcvrel(3) is called.
T_DATAXFER,T_OUTREL
On failure, t_errno is set to one of the following:
Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and t_errno is set to indicate an error.
t_getinfo(3)
t_open(3)
t_sndrel(3)