package srt

  1. Overview
  2. Docs
type t
type flag = [
  1. | `Read
  2. | `Write
  3. | `Error
]
type event = {
  1. fd : socket;
  2. events : flag list;
}
val create : unit -> t
val sockets : t -> socket list
val add_usock : ?flags:flag list -> t -> socket -> unit
val remove_usock : t -> socket -> unit
val update_usock : ?flags:flag list -> t -> socket -> unit
val uwait : t -> timeout:int -> event list
val wait : t -> timeout:int -> socket list * socket list
val release : t -> unit
OCaml

Innovation. Community. Security.