[−][src]Crate grin_p2p
Networking code to connect to other peers and exchange block, transactions, etc.
Re-exports
pub use types::Capabilities; |
pub use types::ChainAdapter; |
pub use types::Direction; |
pub use types::Error; |
pub use types::P2PConfig; |
pub use types::PeerInfo; |
pub use types::ReasonForBan; |
pub use types::Seeding; |
pub use types::TxHashSetRead; |
pub use types::MAX_BLOCK_HEADERS; |
pub use types::MAX_LOCATORS; |
pub use 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 |