Module Posix_socket.Addrinfo

Address information structure returned by getaddrinfo.

type t

Abstract addrinfo type.

val t : t Ctypes.structure Ctypes.typ

Ctypes structure type.

val ai_flags : (int, t Ctypes.structure) Ctypes.field

Input flags (AI_* constants).

val ai_family : (int, t Ctypes.structure) Ctypes.field

Address family (AF_* constants).

val ai_socktype : (socket_type, t Ctypes.structure) Ctypes.field

Socket type (SOCK_* constants).

val ai_protocol : (int, t Ctypes.structure) Ctypes.field

Protocol (IPPROTO_* constants).

val ai_addrlen : (socklen_t, t Ctypes.structure) Ctypes.field

Length of socket address.

val ai_addr : (sockaddr Ctypes.ptr, t Ctypes.structure) Ctypes.field

Socket address.

val ai_next : (t Ctypes.structure Ctypes.ptr, t Ctypes.structure) Ctypes.field

Next addrinfo in linked list.