type t
=
{
name : string;
aliases : string array;
port : int;
proto : string;
}
Structure of entries in the services database.
services
include sig ... end
val t_of_sexp : Base.Sexp.t ‑> t
val sexp_of_t : t ‑> Base.Sexp.t
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