Source file posix_socket_constants.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module Def (S : Cstubs.Types.TYPE) = struct
let af_inet = S.constant "AF_INET" S.int
let af_inet6 = S.constant "AF_INET6" S.int
let af_unix = S.constant "AF_UNIX" S.int
let af_unspec = S.constant "AF_UNSPEC" S.int
let sa_data_len = S.constant "SA_DATA_LEN" S.int
let sa_family_t_len = S.constant "SA_FAMILY_T_LEN" S.int
let sock_dgram = S.constant "SOCK_DGRAM" S.int
let sock_stream = S.constant "SOCK_STREAM" S.int
let sock_seqpacket = S.constant "SOCK_STREAM" S.int
let socklen_t_len = S.constant "SOCKLEN_T_LEN" S.int
let ni_maxserv = S.constant "NI_MAXSERV" S.int
let ni_maxhost = S.constant "NI_MAXHOST" S.int
let ni_numerichost = S.constant "NI_NUMERICHOST" S.int
let ni_numericserv = S.constant "NI_NUMERICSERV" S.int
let ipproto_ip = S.constant "IPPROTO_IP" S.int
let ipproto_ipv6 = S.constant "IPPROTO_IPV6" S.int
let ipproto_icmp = S.constant "IPPROTO_ICMP" S.int
let ipproto_raw = S.constant "IPPROTO_RAW" S.int
let ipproto_tcp = S.constant "IPPROTO_TCP" S.int
let ipproto_udp = S.constant "IPPROTO_UDP" S.int
end