*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> t_close (3n)              


t_close(3N)							   t_close(3N)

NAME    [Toc]    [Back]

     t_close - close a transport endpoint

SYNOPSIS    [Toc]    [Back]

     #ifdef _XOPEN_SOURCE
     #include <xti.h>
     #include <tiuser.h>

     int t_close(fd)
     int fd;

DESCRIPTION    [Toc]    [Back]

     The t_close function informs the transport	provider that the user is
     finished with the transport endpoint specified by fd, and frees any local
     library resources associated with the endpoint.  In addition, t_close
     closes the	file associated	with the transport endpoint.

     t_close should be called from the T_UNBND state [see t_getstate(3N)].
     However, this function does not check state information, so it may	be
     called from any state to close a transport	endpoint.  If this occurs, the
     local library resources associated	with the endpoint will be freed
     automatically.  In	addition, close(2) will	be issued for that file
     descriptor; the close will	be abortive if no other	process	has that file
     open, and will break any transport	connection that	may be associated with
     that endpoint.

     This function resides within both the X/Open compliant libxnet and	the
     SVR4 compliant libnsl Network Services libraries.	Network	Services
     applications which	require	X/Open compliance must link-load with -lxnet.
     Network Services applications which require SVR4 compliance must linkload
 with -lnsl.

     On	failure, t_errno may be	set to the following:

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

SEE ALSO    [Toc]    [Back]

     t_getstate(3N), t_open(3N), t_unbind(3N)

DIAGNOSTICS    [Toc]    [Back]

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

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
t_close Tru64 Close a transport endpoint.
t_open HP-UX establish a transport endpoint
t_open Tru64 Establishes a transport endpoint
t_open IRIX establish a transport endpoint
t_unbind IRIX disable a transport endpoint
t_unbind Tru64 Disable a transport endpoint.
t_unbind HP-UX disable a transport endpoint
t_look Tru64 Look at the current event on a transport endpoint.
t_bind Tru64 Bind an address to a transport endpoint
t_optmgmt HP-UX manage options for a transport endpoint
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service