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

  man pages->IRIX man pages -> shutdown (3n)              
Title
Content
Arch
Section
 

Contents


shutdown(3N)							  shutdown(3N)


NAME    [Toc]    [Back]

     shutdown -	shut down part of a full-duplex	connection

SYNOPSIS    [Toc]    [Back]

     int shutdown(int s, int how);

DESCRIPTION    [Toc]    [Back]

     The shutdown call shuts down all or part of a full-duplex connection on
     the socket	associated with	s.  If how is 0, then further receives will be
     disallowed.  If how is 1, then further sends will be disallowed.  If how
     is	2, then	further	sends and receives will	be disallowed.

RETURN VALUE    [Toc]    [Back]

     A 0 is returned if	the call succeeds, -1 if it fails.

ERRORS    [Toc]    [Back]

     The call succeeds unless:

     EBADF		 s is not a valid descriptor.

     ENOTSOCK		 s is a	file, not a socket.

     ENOTCONN		 The specified socket is not connected.

     ENOMEM		 There was insufficient	user memory available for the
			 operation to complete.

     ENOSR		 There were insufficient STREAMS resources available
			 for the operation to complete.

SEE ALSO    [Toc]    [Back]

      
      
     connect(3N), socket(3N)

NOTES    [Toc]    [Back]

     The how values should be defined constants.


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
SSL_shutdown NetBSD shut down a TLS/SSL connection
SSL_shutdown OpenBSD shut down a TLS/SSL connection
SSL_shutdown Tru64 Shut down a TLS/SSL connection
shutdown HP-UX shut down a socket
xlv_shutdown IRIX shut down XLV volumes
shutdown Tru64 Shut down socket send and receive operations
full Linux always full device
ftpshut HP-UX create shutdown message file to shut down the ftp servers at a given time
photo IRIX Full-color images
endfullscrn IRIX ends full-screen mode
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service