Disable a transport endpoint.
X/Open Transport Interface Library (libxti.a)
#include <xti.h>int t_unbind (fd)
int fd;The t_unbind subroutine disables the transport endpoint which was previously bound by t_bind. On completion of this call, no further data or events destined for this transport endpoint are accepted by the transport provider. An endpoint which is disabled by using the t_unbind subroutine can be enabled by a subsequent call to the t_unbind subroutine.
| Item | Description | 
|---|---|
| fd | Specifies the transport endpoint. | 
T_IDLE
| Item | Description | 
|---|---|
| 0 | Successful completion. | 
| -1 | t_errno is set to indicate an error. | 
On failure, t_errno is set to one of the following:
| Value | Description | 
|---|---|
| TBADF | The specified file descriptor does not refer to a transport endpoint. | 
| TOUTSTATE | The subroutine was issued in the wrong sequence. | 
| TLOOK | An asynchronous event has occurred on this transport endpoint. | 
| TSYSERR | A system error has occurred during execution of this subroutine. | 
| TPROTO | This error indicates that a communication problem has been detected between the X/Open Transport Interface and the transport provider for which there is no other suitable X/Open Transport Interface (t_errno). |