sig
  type t = {
    name : string;
    aliases : string array;
    port : int;
    proto : string;
  }
  val getbyname : string -> protocol:string -> Core_unix.Service.t option
  val getbyname_exn : string -> protocol:string -> Core_unix.Service.t
  val getbyport : int -> protocol:string -> Core_unix.Service.t option
  val getbyport_exn : int -> protocol:string -> Core_unix.Service.t
  val t_of_sexp : Sexplib.Sexp.t -> Core_unix.Service.t
  val sexp_of_t : Core_unix.Service.t -> Sexplib.Sexp.t
end