devkit

Development kit - general purpose library
IN THIS PACKAGE
Module Devkit_core . Async . Peer
type t = {
events : Ev.event_base;
read : Ev.event;
write : Ev.event;
timeout : float option;
fd : Unix.file_descr;
addr : Unix.sockaddr;
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