This document was created by man2html using the manual pages.
Section: Linux Programmer's Manual (2)
Return to NetAdminTools
shutdown - shut down part of a full-duplex connection
int shutdown(int s, int how);
call causes all or part of a full-duplex connection on the socket
to be shut down. If
further receptions will be disallowed. If
further transmissions will be disallowed. If
further receptions and transmissions will be disallowed.
On success, zero is returned. On error, -1 is returned, and
is set appropriately.
is not a valid descriptor.
is a file, not a socket.
The specified socket is not connected.
The constants SHUT_RD, SHUT_WR, SHUT_RDWR have the value 0, 1, 2,
respectively, and are defined in
function call first appeared in 4.2BSD).
- RETURN VALUE
- CONFORMING TO
- SEE ALSO
Return to NetAdminTools,