Module Core_unix.Host


module Host: sig .. end


type t = {
   name : string;
   aliases : string array;
   addrtype : Core_unix.socket_domain;
   addrs : Core_unix.inet_addr array;
}
Structure of entries in the hosts database.
val getbyname : string -> t option
Find an entry in hosts with the given name.
val getbyname_exn : string -> t
val getbyaddr : Core_unix.inet_addr -> t option
Find an entry in hosts with the given address.
val getbyaddr_exn : Core_unix.inet_addr -> t