2019-10-07 15:36:16 -07:00
|
|
|
//! Peer handling.
|
|
|
|
|
|
|
|
/// Handles outbound requests from our node to the network.
|
2019-10-10 18:15:24 -07:00
|
|
|
mod client;
|
2019-10-22 12:44:08 -07:00
|
|
|
/// Wrapper around handshake logic that also opens a TCP connection.
|
|
|
|
mod connector;
|
2019-10-15 20:38:26 -07:00
|
|
|
/// Peer-related errors.
|
|
|
|
mod error;
|
2019-10-22 11:30:24 -07:00
|
|
|
/// Performs peer handshakes.
|
|
|
|
mod handshake;
|
2019-10-07 15:36:16 -07:00
|
|
|
/// Handles inbound requests from the network to our node.
|
2019-10-10 18:15:24 -07:00
|
|
|
mod server;
|
|
|
|
|
|
|
|
pub use client::PeerClient;
|
2019-10-22 12:44:08 -07:00
|
|
|
pub use connector::PeerConnector;
|
2019-10-15 16:10:43 -07:00
|
|
|
pub use error::{HandshakeError, PeerError, SharedPeerError};
|
2019-10-22 11:30:24 -07:00
|
|
|
pub use handshake::PeerHandshake;
|
2019-10-10 18:15:24 -07:00
|
|
|
pub use server::PeerServer;
|