package uwt

  1. Overview
  2. Docs
type socket_domain = Unix.socket_domain
type socket_type = Unix.socket_type
type getaddrinfo_option = Unix.getaddrinfo_option
type addr_info = {
  1. ai_family : socket_domain;
  2. ai_socktype : socket_type;
  3. ai_protocol : int;
  4. ai_addr : sockaddr;
  5. ai_canonname : string;
}
val getaddrinfo : host:string -> service:string -> getaddrinfo_option list -> addr_info list uv_result Lwt.t

Be careful. getaddrinfo returns raw error codes, whereas Unix.getaddrinfo returns the empty list

type getnameinfo_option = Unix.getnameinfo_option
val getnameinfo : sockaddr -> getnameinfo_option list -> Unix.name_info uv_result Lwt.t
OCaml

Innovation. Community. Security.