DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 
(TLI/XTI)

t_unbind(NET)


t_unbind -- disable a transport endpoint

Syntax

TLI syntax

cc . . . -lnsl

#include <sys/tiuser.h>

int t_unbind (fd) int fd;

XTI syntax

cc . . . -lxti

#include <xti.h>

int t_unbind (fd) int fd;

Description

The t_unbind function disables the transport endpoint specified by fd, which was previously bound by t_bind. On completion of this call, no further data or events destined for this transport endpoint is accepted by the transport provider.

Return values

t_unbind returns 0 on success and -1 on failure, and t_errno is set to indicate the error.

Diagnostics

On failure, t_errno may be set to one of the following:

[TBADF]
The specified file descriptor does not refer to a transport endpoint.

[TLOOK]
An asynchronous event has occurred on this transport endpoint.

[TOUTSTATE]
The function was issued in the wrong sequence; the state should be T_IDLE.

[TSYSERR]
A system error occurred during execution of this function.

See also

Intro(NET), t_bind(NET)

Standards conformance

t_unbind is conformant with:

AT&T SVID Issue 3 ;
X/Open CAE Specification, Networking Services, Issue 4, 1994. ;
and Intel386 Binary Compatibility Specification, Edition 2 (iBCSe2) .


© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003