Subversion Repositories tendra.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
#   		 Crown Copyright (c) 1997
2
#   
3
#   This TenDRA(r) Computer Program is subject to Copyright
4
#   owned by the United Kingdom Secretary of State for Defence
5
#   acting through the Defence Evaluation and Research Agency
6
#   (DERA).  It is made available to Recipients with a
7
#   royalty-free licence for its use, reproduction, transfer
8
#   to other parties and amendment for any purpose not excluding
9
#   product development provided that any such use et cetera
10
#   shall be deemed to be acceptance of the following conditions:-
11
#   
12
#       (1) Its Recipients shall ensure that this Notice is
13
#       reproduced upon any copies or amended versions of it;
14
#   
15
#       (2) Any amended version of it shall be clearly marked to
16
#       show both the nature of and the organisation responsible
17
#       for the relevant amendment or amendments;
18
#   
19
#       (3) Its onward transfer from a recipient to another
20
#       party shall be deemed to be that party's acceptance of
21
#       these conditions;
22
#   
23
#       (4) DERA gives no warranty or assurance as to its
24
#       quality or suitability for any purpose and DERA accepts
25
#       no liability whatsoever in relation to any use to which
26
#       it may be put.
27
#
28
+USE "bsd_extn", "sys/types.h" ;
29
 
30
+CONST int PF_UNIX, PF_INET ;
31
+CONST int SOCK_STREAM, SOCK_DGRAM, SOCK_RAW, SOCK_SEQPACKET, SOCK_RDM ;
32
 
33
+FUNC int socket ( int, int, int ) ;
34
+FUNC int socketpair ( int, int, int, int [2] ) ;
35
 
36
+CONST int SO_DEBUG, SO_REUSEADDR, SO_KEEPALIVE, SO_DONTROUTE, SO_LINGER ;
37
+CONST int SO_BROADCAST, SO_SNDBUF, SO_RCVBUF ;
38
# SO_OOBINLINE, SO_TYPE, SO_ERROR
39
 
40
+FUNC int getsockname ( int, caddr_t, int * ) ;
41
+FUNC int getsockopt ( int, int, int, char *, int * ) ;
42
+FUNC int setsockopt ( int, int, int, const char *, int ) ;
43
+FUNC int getpeername ( int, caddr_t, int * ) ;
44
 
45
+CONST int MSG_OOB, MSG_DONTROUTE, MSG_PEEK ;
46
 
47
+FIELD struct msghdr {
48
    caddr_t msg_name ;
49
    int msg_namelen ;
50
    struct iovec *msg_iov ;
51
    int msg_iovlen ;
52
    caddr_t msg_accrights ;
53
    int msg_accrightslen ;
54
} ;
55
 
56
+FUNC int accept ( int, caddr_t, int * ) ;
57
+FUNC int bind ( int, caddr_t, int ) ;
58
+FUNC int connect ( int, caddr_t, int ) ;
59
+FUNC int listen ( int, int ) ;
60
+FUNC int shutdown ( int, int ) ;
61
+FUNC int recv ( int, char *, int, int ) ;
62
+FUNC int recvfrom ( int, char *, int, int, caddr_t, int * ) ;
63
+FUNC int recvmsg ( int, struct msghdr *, int ) ;
64
+FUNC int send ( int, const char *, int, int ) ;
65
+FUNC int sendto ( int, const char *, int, int, caddr_t, int ) ;
66
+FUNC int sendmsg ( int, struct msghdr *, int ) ;