package posix-socket

  1. Overview
  2. Docs
Bindings for posix sockets

Install

Dune Dependency

Authors

Maintainers

Sources

v2.1.0.tar.gz
md5=0c6a8cd7b7f5e163160abb8a62f75a5b
sha512=735c6afd48e36af0a032f51217e7558629a198fd39a0484883831bdbff511b331033696b8ad73c6896fa9df0a0b1fd2f27336c2b0b7447dd10902e6bc64e4886

doc/src/posix-socket.constants/posix_socket_constants.ml.html

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
OCaml

Innovation. Community. Security.