package devkit

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

1.20261006.tar.gz
md5=a39dbbce04bd5562a9b4443daf39c582
sha512=b10104b61384b2151521b785e7f3c3250134c75eae09b42cad69bc4a22a9a5e429beb891ee87cedf376c23d9c40f09d3f71c3fd48aa35df490c0f69dc17f3242

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