Module Core_unix.Host

module Host: sig .. end

type t = {
   name :string;
   aliases :string array;
   family :Core_unix.Protocol_family.t;
   addresses :Core_unix.Inet_addr.t array;
}
Structure of entries in the hosts database.
val 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.

val getbyname_exn : string -> t
val getbyaddr : Core_unix.Inet_addr.t -> t option
Find an entry in hosts with the given address.
val getbyaddr_exn : Core_unix.Inet_addr.t -> t
val have_address_in_common : t -> t -> bool
val sexp_of_t : t -> Sexplib.Sexp.t

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.

Find an entry in hosts with the given address.