Module Posix_socket.SockaddrInet6

IPv6 socket address structure.

type in6_addr

IPv6 address type (128-bit).

val in6_addr : in6_addr Ctypes.structure Ctypes.typ

Ctypes representation of struct in6_addr.

val s6_addr : (in6_addr, in6_addr Ctypes.structure) Ctypes.field

The s6_addr field containing the IPv6 address bytes.

type t

Abstract sockaddr_in6 type.

val t : t Ctypes.structure Ctypes.typ

Ctypes structure type.

val sin6_family : (sa_family_t, t Ctypes.structure) Ctypes.field

Address family (always AF_INET6).

val sin6_port : (in_port, t Ctypes.structure) Ctypes.field

Port number in network byte order.

val sin6_flowinfo : (Unsigned.uint32, t Ctypes.structure) Ctypes.field

IPv6 flow information.

val sin6_addr : (in6_addr Ctypes.structure, t Ctypes.structure) Ctypes.field

IPv6 address.

val sin6_scope_id : (Unsigned.uint32, t Ctypes.structure) Ctypes.field

Scope ID for link-local addresses.

val from_sockaddr_storage : sockaddr_storage Ctypes.ptr -> t Ctypes.structure Ctypes.ptr

Convert from sockaddr_storage to sockaddr_in6.