5 #include <sys/socket.h>
10 #include <netinet/in.h>
11 #include <arpa/inet.h>
20 StgInt acceptSocket PROTO((StgInt, StgAddr, StgAddr));
23 StgInt bindSocket PROTO((StgInt, StgAddr, StgInt, StgInt));
25 /* connectSocket.lc */
26 StgInt connectSocket PROTO((StgInt, StgAddr, StgInt, StgInt));
29 StgInt createSocket PROTO((StgInt, StgInt, StgInt));
32 StgInt getSockName PROTO((StgInt, StgAddr, StgAddr));
35 StgInt getPeerName PROTO((StgInt, StgAddr, StgAddr));
38 StgInt listenSocket PROTO((StgInt, StgInt));
40 /* shutdownSocket.lc */
41 StgInt shutdownSocket PROTO((StgInt, StgInt));
43 /* readDescriptor.lc */
44 StgInt readDescriptor PROTO((StgInt, StgAddr, StgInt));
46 /* writeDescriptor.lc */
47 StgInt writeDescriptor PROTO((StgInt, StgAddr, StgInt));
50 #endif /* !GHC_SOCKETS_H */