package socket-daemon

  1. Overview
  2. Docs
type command = {
  1. name : string;
  2. desc : string;
  3. options : (Stdlib.Arg.key * Stdlib.Arg.spec * Stdlib.Arg.doc) list;
  4. anon : (string -> unit) option;
  5. action : (Sdaemon_common.socket_spec -> unit Lwt.t) option;
}
val command : ?options:(Stdlib.Arg.key * Stdlib.Arg.spec * Stdlib.Arg.doc) list -> ?anon:(string -> unit) -> ?action:(Sdaemon_common.socket_spec -> unit Lwt.t) -> name:string -> desc:string -> unit -> command
val connect : Sdaemon_common.socket_spec -> (Lwt_io.input_channel * Lwt_io.output_channel) Lwt.t
val run : ?options:(Stdlib.Arg.key * Stdlib.Arg.spec * Stdlib.Arg.doc) list -> ?commands:command list -> (unit -> Sdaemon_common.socket_spec) -> name:string -> version:string -> unit
OCaml

Innovation. Community. Security.