Expand description
Cuprate’s P2P Crate.
This crate contains a NetworkInterface which allows interacting with the Monero P2P network on
a certain NetworkZone
Re-exports§
pub use config::P2PConfig;pub use config::TransportConfig;
Modules§
- block_
downloader  - Block Downloader
 - config
 - connection_
maintainer  - Outbound Connection Maintainer.
 - constants
 
Structs§
- Address
Book Config  - The address book config.
 - Broadcast
Svc  - Client
Drop Guard  - A 
Dropguard for a client returned from the peer-set. - Network
Interface  - The interface to Monero’s P2P network on a certain 
NetworkZone. 
Enums§
- Broadcast
Request  - A request to broadcast some data to all connected peers or a sub-set like all inbound or all outbound.
 - Peer
SetRequest  - A request to the peer-set.
 - Peer
SetResponse  - A response from the peer-set.
 
Functions§
- initialize_
network  - Initializes the P2P 
NetworkInterfacefor a specificNetworkZone.