package devkit

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

Install

Dune Dependency

Authors

Maintainers

Sources

1.2.tar.gz
sha256=28f4c68127579b86c5f50e01e444e8c51f0543bc5472c2dcac28993bc88aa756
md5=0317493fa5cc1054a882ceca59ce5992

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.