t_unbind(3xti)
Name
t_unbind − disable a transport endpoint.
Syntax
#include <xti.h>
int t_unbind(fd)
int fd;
Arguments
fdIdentifies the transport endpoint that the t_unbind() function disables.
Description
The t_unbind() function disables the transport endpoint specified by fd that 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.
| Parameters | Before Call | After Call |
| fd | x | / |
Return Values
Upon successful completion, a value of 0 is returned. Otherwise, a value of −1 is returned, and t_errno is set to indicate the error.
Diagnostics
On failure, t_errno is set to one of the following:
[TBADF] The specified file descriptor does not refer to a transport endpoint.
[TOUTSTATE] The function was issued in the wrong sequence.
[TLOOK] An asynchronous event has occurred on the transport endpoint.
[TSYSERR] A system error has occurred during execution of this function.