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

  man pages->Linux man pages -> shutdown (2)              
Title
Content
Arch
Section
 

SHUTDOWN(2)

Contents


NAME    [Toc]    [Back]

       shutdown - shut down part of a full-duplex connection

SYNOPSIS    [Toc]    [Back]

       #include <sys/socket.h>

       int shutdown(int s, int how);

DESCRIPTION    [Toc]    [Back]

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

RETURN VALUE    [Toc]    [Back]

       On success, zero is returned.  On error, -1 is returned, and  errno  is
       set appropriately.

ERRORS    [Toc]    [Back]

       EBADF  s is not a valid descriptor.

       ENOTSOCK    [Toc]    [Back]
	      s is a file, not a socket.

       ENOTCONN    [Toc]    [Back]
	      The specified socket is not connected.

CONFORMING TO    [Toc]    [Back]

       4.4BSD (the shutdown function call first appeared in 4.2BSD).

BUGS    [Toc]    [Back]

       The  numerical  how flags should be replaced by the Single Unixmandated
 SHUT_RD, SHUT_WR, and SHUT_RDWR flags.

SEE ALSO    [Toc]    [Back]

      
      
       connect(2), socket(2)



BSD Man Page			  1993-07-24			   SHUTDOWN(2)
[ 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