package fuseau-lwt

  1. Overview
  2. Docs
type t = Lwt_io.server

The Lwt TCP server

val establish : ?backlog:int -> ?no_close:bool -> Unix.sockaddr -> (Unix.sockaddr -> Iostream.In.t -> Iostream.Out.t -> unit) -> t

Establish a server, where each connection spawns a new fiber that uses Fuseau's Iostreams.

val shutdown : t -> unit