The
shutdown() call causes all or part of a full-duplex connection on the socket associated with
s to be shut down. The
how argument specifies which part of the connection will be shut down. Permissible values are:
SHUT_RD
further receives will be disallowed.
SHUT_WR
further sends will be disallowed.
SHUT_RDWR
further sends and receives will be disallowed.