Module Core_unix.Service

module Service: sig .. end

type t = {
   name :string;
   aliases :string array;
   port :int;
   proto :string;
}
Structure of entries in the services database.
val getbyname : string -> protocol:string -> t option
Find an entry in services with the given name.
val getbyname_exn : string -> protocol:string -> t
val getbyport : int -> protocol:string -> t option
Find an entry in services with the given service number.
val getbyport_exn : int -> protocol:string -> t
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t

Find an entry in services with the given name.

Find an entry in services with the given service number.