2 % (c) The GRASP/AQUA Project, Glasgow University, 1996
4 \subsection[shutdownSocket.lc]{Shut down part of full duplex connection}
12 shutdownSocket(int sockfd, int how)
16 while ((rc = shutdown(sockfd, how)) < 0) {
24 ghc_errtype = ERR_INVALIDARGUMENT;
25 ghc_errstr = "Not a valid write descriptor";
28 ghc_errtype = ERR_INVALIDARGUMENT;
29 ghc_errstr = "Socket not connected";
32 ghc_errtype = ERR_INVALIDARGUMENT;
33 ghc_errstr = "Descriptor is not a socket";