package core_unix

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Core_unix.ServiceSource

Sourcetype t = {
  1. name : string;
  2. aliases : string array;
  3. port : int;
  4. proto : string;
}

Structure of entries in the services database.

include Sexplib0.Sexpable.S with type t := t
Sourceval t_of_sexp : Sexplib0.Sexp.t -> t
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval getbyname : string -> protocol:string -> t option

Find an entry in services with the given name.

Sourceval getbyname_exn : string -> protocol:string -> t
Sourceval getbyport : int -> protocol:string -> t option

Find an entry in services with the given service number.

Sourceval getbyport_exn : int -> protocol:string -> t
OCaml

Innovation. Community. Security.