package devkit

  1. Overview
  2. Docs
type t = {
  1. events : Ev.event_base;
  2. read : Ev.event;
  3. write : Ev.event;
  4. timeout : float option;
  5. fd : Unix.file_descr;
  6. addr : Unix.sockaddr;
  7. err : unit -> unit;
}
val create : Ev.event_base -> ?err:(unit -> unit) -> ?timeout:float -> (Unix.file_descr * Unix.sockaddr) -> t
val add_event : t -> Ev.event -> float option -> unit
val finish : t -> unit
val error : ?exn:exn -> t -> string -> unit
val receive : t -> ?timeout:float -> bytes -> (bytes -> unit) -> unit
val send : t -> ?timeout:float -> string -> (unit -> unit) -> unit
val send_all : t -> ?timeout:float -> string list -> (unit -> unit) -> unit
val connect : t -> ?timeout:float -> (unit -> unit) -> unit
OCaml

Innovation. Community. Security.