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;
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
Drop
guard 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
NetworkInterface
for a specificNetworkZone
.