Up

Module Service

Signature

type t = {
name
: string ;
aliases
: string array ;
port
: int ;
proto
: string ;
}

Structure of entries in the services database.

val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.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