6 #include <netinet/in.h>
19 #ifdef HAVE_SYS_SOCKET_H
20 # include <sys/socket.h>
22 #if TIME_WITH_SYS_TIME
23 # include <sys/time.h>
27 # include <sys/time.h>
32 #ifdef HAVE_SYS_TYPES_H
33 # include <sys/types.h>
37 /* ToDo: featurise this */
38 #ifndef cygwin32_TARGET_OS
47 StgInt acceptSocket PROTO((StgInt, StgAddr, StgAddr));
50 StgInt bindSocket PROTO((StgInt, StgAddr, StgInt, StgInt));
52 /* connectSocket.lc */
53 StgInt connectSocket PROTO((StgInt, StgAddr, StgInt, StgInt));
56 StgInt createSocket PROTO((StgInt, StgInt, StgInt));
59 StgInt getSockName PROTO((StgInt, StgAddr, StgAddr));
62 StgInt getPeerName PROTO((StgInt, StgAddr, StgAddr));
65 StgInt listenSocket PROTO((StgInt, StgInt));
67 /* shutdownSocket.lc */
68 StgInt shutdownSocket PROTO((StgInt, StgInt));
70 /* readDescriptor.lc */
71 StgInt readDescriptor PROTO((StgInt, StgAddr, StgInt));
74 StgInt recvFrom__ PROTO((StgInt, StgAddr, StgInt, StgAddr));
77 StgInt sendTo__ PROTO((StgInt, StgAddr, StgInt, StgAddr, StgInt));
79 /* writeDescriptor.lc */
80 StgInt writeDescriptor PROTO((StgInt, StgAddr, StgInt));
83 #endif /* !GHC_SOCKETS_H */