Module Tezos_p2p.P2p_welcome

Welcome worker.

Accept incoming connections and add them to the pool.

type t

Type of a welcome worker.

create ?addr ~backlog pool port returns a running welcome worker adding connections into pool listening on addr:port. backlog is passed to Lwt_unix.listen. No connections are accepted until activate is called.

val activate : t -> unit

activate t activates the worker that will accept connections

val shutdown : t -> unit Lwt.t

shutdown t shutdowns t and returns when it has completed the shutdown.