package posix-socket

  1. Overview
  2. Docs

Module Posix_socket.SockaddrInetSource

IPv4 socket address structure.

Sourcetype in_addr = Unsigned.uint32

IPv4 address type (32-bit).

Sourceval in_addr_t : in_addr Ctypes.typ

Ctypes representation of in_addr_t.

Ctypes representation of struct in_addr.

The s_addr field containing the IPv4 address.

Sourcetype t

Abstract sockaddr_in type.

Ctypes structure type.

Address family (always AF_INET).

Port number in network byte order.

Convert from sockaddr_storage to sockaddr_in.