package riot

  1. Overview
  2. Docs
type listen_opts = {
  1. reuse_addr : bool;
  2. reuse_port : bool;
  3. backlog : int;
  4. addr : Addr.tcp_addr;
}
val default_listen_opts : listen_opts
val accept : ?timeout:int64 -> t -> (Tcp_stream.t * Addr.stream_addr, [> `Noop ]) IO.io_result
val bind : ?opts:listen_opts -> port:int -> unit -> (t, [> `Noop ]) IO.io_result
val close : t -> unit
val pp : Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.