Man page of t_getstate
Section: C Library Functions (3)
Return to Main Contents
t_getstate - Gets the current state of the transport provider
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 the
t_getstate() function is called:
Notes to Table:
|Parameter||Before Call||After Call|
y This is a meaningful parameter.
n This is not a meaningful parameter.
Specifies a file descriptor returned by the t_open() function that
identifies the local transport endpoint.
The t_getstate() function can be called in all transport
provider states except T_UNINIT.
The t_getstate() function is a general utility function used
to get the current state of
the transport provider. The transport endpoint, which is specified by
a file descriptor, is regarded as a finite-state machine that may be
in any one of eight states.
When the t_getstate() function is executed, the
current state of the transport endpoint is returned.
If the transport provider is undergoing a change in state when
t_getinfo() is called, a failure occurs.
Upon successful completion, the transport endpoint state is returned.
Otherwise, a value of -1 is returned and t_errno is set to
indicate the error. The current state is one of the following:
Address not bound to transport endpoint.
The transport endpoint is inactive.
Outgoing connection pending.
Incoming connection pending.
Data transfer in progress.
Outgoing orderly release (waiting for an orderly release indication).
Incoming orderly release (waiting to send an orderly release request).
If the t_getstate() function fails, t_errno may be set to one
of the following values:
The specified file descriptor does not refer to a transport endpoint.
This error may be returned when the endpoint referenced by the
fd parameter has
been previously closed or an erroneous file descriptor value has been
This error indicates that a communication problem has been detected
between XTI and the transport provider for which there is no other
The transport provider is undergoing a change in state.
A system error occurred during execution of this function.
- VALID STATES
- RETURN VALUE
- RELATED INFORMATION
This document was created by
using the manual pages.
Time: 02:40:44 GMT, October 02, 2010