Crate grin_p2p[−][src]
Networking code to connect to other peers and exchange block, transactions, etc.
Re-exports
pub use crate::types::Capabilities; | |
pub use crate::types::ChainAdapter; | |
pub use crate::types::Direction; | |
pub use crate::types::Error; | |
pub use crate::types::P2PConfig; | |
pub use crate::types::PeerAddr; | |
pub use crate::types::PeerInfo; | |
pub use crate::types::ReasonForBan; | |
pub use crate::types::Seeding; | |
pub use crate::types::TxHashSetRead; | |
pub use crate::types::MAX_BLOCK_HEADERS; | |
pub use crate::types::MAX_LOCATORS; | |
pub use crate::types::MAX_PEER_ADDRS; |
Modules
handshake | |
msg | Message types that transit over the network and related serialization code. |
types |
Structs
DummyAdapter | A no-op network adapter used for testing. |
Peer | |
PeerData | Data stored for any given peer we’ve encountered. |
Peers | |
Server | P2P server implementation, handling bootstrapping to find and connect to peers, receiving connections from other peers and keep track of all of them. |
Enums
State |
Constants
SEND_CHANNEL_CAP |