3 % (c) The GRASP/AQUA Project, Glasgow University, 1996
5 \subsection[shutdownSocket.lc]{Shut down part of full duplex connection}
10 #define NON_POSIX_SOURCE
12 #include "ghcSockets.h"
16 shutdownSocket(I_ sockfd, I_ how)
20 while ((rc = shutdown((int) sockfd, (int) how)) < 0) {
28 ghc_errtype = ERR_INVALIDARGUMENT;
29 ghc_errstr = "Not a valid write descriptor";
32 ghc_errtype = ERR_INVALIDARGUMENT;
33 ghc_errstr = "Socket not connected";
36 ghc_errtype = ERR_INVALIDARGUMENT;
37 ghc_errstr = "Descriptor is not a socket";