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 add_usock : t -> socket -> ?flags:flag list -> unit
val remove_usock : t -> socket -> unit
val update_usock : t -> socket -> ?flags:flag list -> unit
val uwait : t -> max_fds:int -> timeout:int -> event list
val wait : t -> max_read:int -> max_write:int -> timeout:int -> socket list * socket list
val release : t -> unit
OCaml

Innovation. Community. Security.