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;
|
2020-01-15 19:39:53 -08:00
|
|
|
/// The per-peer connection state machine.
|
|
|
|
mod connection;
|
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-10 18:15:24 -07:00
|
|
|
|
2019-11-27 11:46:26 -08:00
|
|
|
use client::ClientRequest;
|
2019-11-27 11:48:41 -08:00
|
|
|
use error::ErrorSlot;
|
2019-11-27 11:46:26 -08:00
|
|
|
|
2019-11-27 11:27:17 -08:00
|
|
|
pub use client::Client;
|
2020-01-15 19:39:53 -08:00
|
|
|
pub use connection::Connection;
|
2019-11-27 11:43:59 -08:00
|
|
|
pub use connector::Connector;
|
2019-10-15 16:10:43 -07:00
|
|
|
pub use error::{HandshakeError, PeerError, SharedPeerError};
|
2019-11-27 11:42:59 -08:00
|
|
|
pub use handshake::Handshake;
|