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"
15 shutdownSocket(I_ sockfd, I_ how)
19 while ((rc = shutdown((int) sockfd, (int) how)) < 0) {
27 ghc_errtype = ERR_INVALIDARGUMENT;
28 ghc_errstr = "Not a valid write descriptor";
31 ghc_errtype = ERR_INVALIDARGUMENT;
32 ghc_errstr = "Socket not connected";
35 ghc_errtype = ERR_INVALIDARGUMENT;
36 ghc_errstr = "Descriptor is not a socket";