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

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

shutdown(2)

Contents


NAME    [Toc]    [Back]

       shutdown - Shut down socket send and receive operations

SYNOPSIS    [Toc]    [Back]

       #include <sys/socket.h>

       int shutdown(
               int socket,
               int how );

STANDARDS    [Toc]    [Back]

       Interfaces  documented  on  this reference page conform to
       industry standards as follows:

       shutdown(): XNS5.0

       Refer to the standards(5) reference page for more information
 about industry standards and associated tags.

PARAMETERS    [Toc]    [Back]

       Specifies  the  file  descriptor of the socket.  Specifies
       the type of  shutdown.  Values  are:  To  disable  further
       receive  operations  To disable further send operations To
       disable further send operations and receive operations

DESCRIPTION    [Toc]    [Back]

       The shutdown() function disables receive and/or send operations
 on the specified socket.

RETURN VALUES    [Toc]    [Back]

       Upon  successful  completion,  a  value  of  0  (zero)  is
       returned. Otherwise, a value of -1 is returned  and  errno
       is set to indicate the error.

ERRORS    [Toc]    [Back]

       If  the shutdown() function fails, errno may be set to one
       of the following  values:  The  socket  parameter  is  not
       valid.    The   how  argument  is  invalid.   Insufficient
       resources are available in  the  system  to  complete  the
       call.   The  available STREAMS resources were insufficient
       for the operation to complete.  The  socket  is  not  connected.
   The  socket  parameter  refers  to a file, not a
       socket.

SEE ALSO    [Toc]    [Back]

      
      
       Functions: getsockopt(2), read(2),  recv(2),  recvfrom(2),
       recvmsg(2),  select(2), send(2), sendto(2), setsockopt(2),
       socket(2), write(2)

       Standards: standards(5)



                                                      shutdown(2)
[ Back ]
 Similar pages
Name OS Title
shutdown HP-UX shut down a socket
recv FreeBSD receive a message from a socket
recv IRIX receive a message from a socket
recvfrom HP-UX receive a message from a socket
recvmsg NetBSD receive a message from a socket
recv NetBSD receive a message from a socket
recvmsg HP-UX receive a message from a socket
recvmsg FreeBSD receive a message from a socket
recv HP-UX receive a message from a socket
recv IRIX receive a message from a socket
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service