1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#ifndef GHC_SOCKETS_H
#define GHC_SOCKETS_H
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/fcntl.h>
#include <sys/uio.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <unistd.h>
/* acceptSocket.lc */
StgInt acceptSocket PROTO((StgInt, StgAddr, StgAddr));
/* bindSocket.lc */
StgInt bindSocket PROTO((StgInt, StgAddr, StgInt, StgInt));
/* connectSocket.lc */
StgInt connectSocket PROTO((StgInt, StgAddr, StgInt, StgInt));
/* createSocket.lc */
StgInt createSocket PROTO((StgInt, StgInt, StgInt));
/* getSockName.lc */
StgInt getSockName PROTO((StgInt, StgAddr, StgAddr));
/* getPeerName.lc */
StgInt getPeerName PROTO((StgInt, StgAddr, StgAddr));
/* listenSocket.lc */
StgInt listenSocket PROTO((StgInt, StgInt));
/* shutdownSocket.lc */
StgInt shutdownSocket PROTO((StgInt, StgInt));
/* readDescriptor.lc */
StgInt readDescriptor PROTO((StgInt, StgAddr, StgInt));
/* writeDescriptor.lc */
StgInt writeDescriptor PROTO((StgInt, StgAddr, StgInt));
#endif /* !GHC_SOCKETS_H */
|