package core_unix

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Core_unix.HostSource

Sourcetype t = {
  1. name : string;
  2. aliases : string array;
  3. family : Protocol_family.t;
  4. addresses : Inet_addr.t array;
}

Structure of entries in the hosts database.

Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval getbyname : string -> t option

Find an entry in hosts with the given name.

NOTE: This function is not thread safe with certain versions of winbind using "wins" name resolution.

Sourceval getbyname_exn : string -> t
Sourceval getbyaddr : Inet_addr.t -> t option

Find an entry in hosts with the given address.

Sourceval getbyaddr_exn : Inet_addr.t -> t
Sourceval have_address_in_common : t -> t -> bool
OCaml

Innovation. Community. Security.