2 shutdown - shut down part of a full-duplex connection
7 int shutdown(int s, int how);
10 The shutdown call causes all or part of a full-duplex con-
11 nection on the socket associated with s to be shut down.
12 If how is 0, further receives will be disallowed. If how
13 is 1, further sends will be disallowed. If how is 2, fur-
14 ther sends and receives will be disallowed.
17 On success, zero is returned. On error, -1 is returned,
18 and errno is set appropriately.
21 EBADF s is not a valid descriptor.
24 s is a file, not a socket.
27 The specified socket is not connected.