Posix_socketSourcenetwork/host byte order conversion functions.
Socket types.
val sock_dgram : socket_typeval sock_stream : socket_typeval sock_seqpacket : socket_typeType of the sa_family field.
Socket types constants.
Ctypes routines for C type socklen_t.
Storage-safe overall structure. Used to allocate a structure large enough for any of the sub-types below.
Type for inet/inet6 socket port.
INET (ipv4) socket_in structure.
INET6 (ipv6) socket_in6 structure.
IP address conversion functions.
val getaddrinfo :
?hints:Addrinfo.t Ctypes.structure Ctypes.ptr ->
?port:[ `Int of int | `String of string ] ->
string ->
sockaddr Ctypes.ptr Ctypes.ptrMisc
Interface with the Unix module.