3 % (c) The GRASP/AQUA Project, Glasgow University, 1996
5 \subsection[listenSocket.lc]{Indicate willingness to receive connections}
10 #define NON_POSIX_SOURCE
12 #include "ghcSockets.h"
16 listenSocket(I_ sockfd, I_ backlog)
20 while ((rc = listen((int) sockfd, (int) backlog)) < 0) {
28 ghc_errtype = ERR_INVALIDARGUMENT;
29 ghc_errstr = "Not a valid descriptor";
32 ghc_errtype = ERR_INVALIDARGUMENT;
33 ghc_errstr = "Descriptor not a socket";
36 ghc_errtype = ERR_INVALIDARGUMENT;
37 ghc_errstr = "Socket not of type that supports listen";