Tezos_p2p.P2p_welcome
Welcome worker.
Accept incoming connections and add them to the pool.
val create :
?addr:Tezos_base.TzPervasives.P2p_addr.t ->
backlog:int ->
('msg, 'meta, 'meta_conn) P2p_connect_handler.t ->
Tezos_base.TzPervasives.P2p_addr.port ->
t Tezos_base.TzPervasives.tzresult Lwt.t
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.