Tezos_p2p.P2p_discoveryLocal peer discovery.
This module manages the discovery of local peers through UDP broadcasting. It is composed of two workers:
val create :
listening_port:int ->
discovery_port:int ->
discovery_addr:Ipaddr.V4.t ->
trust_discovered_peers:bool ->
('a, 'b, 'c) P2p_pool.t ->
Tezos_base.TzPervasives.P2p_peer.Table.key ->
t Tezos_base.TzPervasives.tzresult Lwt.tcreate ~listening_port ~discovery_port ~discovery_addr pool peer_id returns a discovery worker registering local peers to the pool and broadcasting discovery messages with the peer_id and the listening_port through the address discovery_addr:discovery_port.
val activate : t -> unitval wakeup : t -> unitwakeup t sends a signal to the sender machine of t, asking it to immediately proceed to broadcasting.
val shutdown : t -> unit Lwt.tshutdown t returns when t has completed shutdown.