package apero-net

  1. Overview
  2. Docs

Module representing an IP endpoint.

type t = {
  1. addr : Lwt_unix.inet_addr;
  2. port : int;
}
val addr : t -> Lwt_unix.inet_addr
val port : t -> int
val to_sockaddr : t -> Lwt_unix.sockaddr
val of_sockaddr : Lwt_unix.sockaddr -> t
val of_string : string -> t option
val to_string : t -> string
val any : int -> t
val any_v6 : int -> t
val with_port : t -> t
val loopback : int -> t
val loopback_v6 : int -> t
val is_ipv4 : t -> bool
val is_ipv6 : t -> bool
val is_multicast : t -> bool
val compare : t -> t -> int
OCaml

Innovation. Community. Security.