3 shutdown \- shuts down a socket for reading, writing, or both
6 #include <sys/socket.h>
10 int shutdown(int \fIsd\fP, int \fIhow\fP);
14 shutdown() shuts down the socket \fIsd\fP for reading, writing,
15 or both reading and writing by setting \fIhow\fP to SHUT_RD,
16 SHUT_WR, or SHUT_RDWR.
18 On success, this function returns 0. On error, -1 is returned and
23 \fIhow\fP must be SHUT_RD, SHUT_WR, or SHUT_RDWR.
26 \fIsd\fP must be a connected socket.
29 attempted to shutdown the read side of a TCP socket,
30 or the type of socket is not supported.