Crate cuprate_p2p

Source
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§

AddressBookConfig
The address book config.
BroadcastSvc
ClientDropGuard
A Drop guard for a client returned from the peer-set.
NetworkInterface
The interface to Monero’s P2P network on a certain NetworkZone.

Enums§

BroadcastRequest
A request to broadcast some data to all connected peers or a sub-set like all inbound or all outbound.
PeerSetRequest
A request to the peer-set.
PeerSetResponse
A response from the peer-set.

Functions§

initialize_network
Initializes the P2P NetworkInterface for a specific NetworkZone.