Content-type: text/html Man page of shutdown

shutdown

Section: System Calls (2)
Index Return to Main Contents
 

NAME

shutdown - Shuts down socket send and receive operations  

SYNOPSIS

#include <sys/socket.h>

int shutdown (        int socket,
       int how );
 

STANDARDS

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

shutdown(): XPG4-UNIX

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

PARAMETERS

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

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

RETURN VALUES

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

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. The socket is not connected. The socket parameter refers to a file, not a socket.  

RELATED INFORMATION

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) delim off


 

Index

NAME
SYNOPSIS
STANDARDS
PARAMETERS
DESCRIPTION
RETURN VALUES
ERRORS
RELATED INFORMATION

This document was created by man2html, using the manual pages.
Time: 02:40:18 GMT, October 02, 2010