Transport Layer Interface Library (libtli.a)
#include <tiuser.h>
int t_getstate(fd) int fd;
The t_getstate subroutine returns the current state of the provider associated with the transport end point specified by the fd parameter.
fd | Specifies the transport end point. |
On successful completion, the t_getstate subroutine returns the current state. Otherwise, it returns a value of -1, and the t_errno variable is set to indicate the error.
If the provider is undergoing a state transition when the t_getstate subroutine is called, the function will fail. The current state is one of the following.
If unsuccessful, the t_errno variable is set to one of the following:
This subroutine is a part of Base Operating System (BOS) Runtime.
The t_open subroutine.
List of Streams Programming References and STREAMS Overview in AIX Version 4.3 Communications Programming Concepts.