t_getstate - get the current state
The t_getstate function returns the current state of the provider
associated with the transport endpoint specified by fd.
This function resides within both the X/Open compliant libxnet and the
SVR4 compliant libnsl Network Services libraries. Network Services
applications which require X/Open compliance must link-load with -lxnet.
Network Services applications which require SVR4 compliance must linkload
On failure, t_errno may be set to one of the following:
TBADF The specified file descriptor does not refer to a
TSTATECHNG The transport provider is undergoing a state change.
TSYSERR A system error has occurred during execution of this
t_getstate returns the current state on successful completion and -1 on
failure and t_errno is set to indicate the error. The current state may
be one of the following:
T_OUTCON outgoing connection pending
T_INCON incoming connection pending
T_DATAXFER data transfer
T_OUTREL outgoing orderly release (waiting for an orderly release
T_INREL incoming orderly release (waiting for an orderly release
If the provider is undergoing a state transition when t_getstate is
called, the function will fail.
PPPPaaaaggggeeee 2222 [ Back ]