libevent

OCaml wrapper for the libevent API
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library liboevent
Module Libevent
type event
type event_base
type event_flags =
| TIMEOUT
| READ
| WRITE
| SIGNAL
type event_callback = Unix.file_descr -> event_flags -> unit
val create : unit -> event
val signal : event -> int
val set : event_base -> event -> Unix.file_descr -> event_flags list -> persist:bool -> event_callback -> unit
val set_timer : event_base -> event -> persist:bool -> ( unit -> unit ) -> unit
val set_signal : event_base -> event -> signal:int -> persist:bool -> event_callback -> unit
val add : event -> float option -> unit
val del : event -> unit
val pending : event -> event_flags list -> bool
val activate : event -> event_flags list -> unit
val dispatch : event_base -> unit
type loop_flag =
| ONCE
| NONBLOCK
val loop : event_base -> loop_flag -> unit
val loops : event_base -> loop_flag list -> unit
val init : unit -> event_base
val reinit : event_base -> unit
val free : event_base -> unit
module Global : sig ... end