package devkit

  1. Overview
  2. Docs
Development kit - general purpose library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

devkit-1.3.tbz
sha256=dae965685dceed47ad8e9844f12fe707dafdf2c3bdd46d0431d5b4d1e7754b23
sha512=b94ade804d751db87434042bbaa821fa8e82e233820a76806f910e2da040094b137e88a3579911a1626930912622b064c776ddbcb6991fb7111021ebf6553fdc

doc/devkit.core/Devkit_core/Async/Peer/index.html

Module Async.PeerSource

Sourcetype 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;
}
Sourceval create : Ev.event_base -> ?err:(unit -> unit) -> ?timeout:float -> (Unix.file_descr * Unix.sockaddr) -> t
Sourceval add_event : t -> Ev.event -> float option -> unit
Sourceval finish : t -> unit
Sourceval error : ?exn:exn -> t -> string -> unit
Sourceval receive : t -> ?timeout:float -> bytes -> (bytes -> unit) -> unit
Sourceval send : t -> ?timeout:float -> string -> (unit -> unit) -> unit
Sourceval send_all : t -> ?timeout:float -> string list -> (unit -> unit) -> unit
Sourceval connect : t -> ?timeout:float -> (unit -> unit) -> unit
OCaml

Innovation. Community. Security.