shutdown(2)
_________________________________________________________________
shutdown System Call
Shut down part of a full-duplex connection.
_________________________________________________________________
SYNTAX
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.
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)
shutdown(2)
ENOTSOCK <s> is a file, not a socket.
ENOTCONN The specified socket is not connected.
SEE ALSO
The related manual sections: connect(2), socket(2).
DG/UX 4.00 Page 2
Licensed material--property of copyright holder(s)