Mavryk_p2p.P2p_welcomeWelcome worker.
Accept incoming connections and add them to the pool.
val create :
?reuse_port:bool ->
?addr:Mavryk_base.TzPervasives.P2p_addr.t ->
backlog:int ->
('msg, 'meta, 'meta_conn) P2p_connect_handler.t ->
Mavryk_base.TzPervasives.P2p_addr.port ->
t Mavryk_base.TzPervasives.tzresult Lwt.tcreate ?reuse_port ?addr ~backlog pool port returns a running welcome worker adding connections into pool listening on addr:port. backlog is passed to Lwt_unix.listen.
reuse_port should be used for testing purposes. This option sets SO_REUSEPORT on the socket, allowing to reuse a port opened elsewhere.
val activate : t -> unitactivate t start the worker that will accept connections
val shutdown : t -> unit Lwt.tshutdown t returns when t has completed shutdown.