shutdown(2) DG/UX 4.30 shutdown(2)
NAME
shutdown - Shut down part of a full-duplex connection.
SYNOPSIS
int shutdown (s, how)
int s;
int how;
PARAMETERS
s File descriptor of socket to shut down.
how Flag for what to shut down.
DESCRIPTION
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.
ACCESS CONTROL
None.
RETURN VALUE
0 Completed successfully.
-1 An error occurred. Errno is set to indicate
the error.
EXCEPTIONS
Errno may be set to one of the following error codes:
EBADF The argument <s> is not an active valid
descriptor.
ENOTSOCK <s> is a file, not a socket.
ENOTCONN The specified socket is not connected.
EINVAL The <how> parameter is out of range.
SEE ALSO
The related manual sections: connect(2), socket(2).
Licensed material--property of copyright holder(s) Page 1