22 lines
544 B
Rust
22 lines
544 B
Rust
//! Peer handling.
|
|
|
|
/// Handles outbound requests from our node to the network.
|
|
mod client;
|
|
/// The per-peer connection state machine.
|
|
mod connection;
|
|
/// Wrapper around handshake logic that also opens a TCP connection.
|
|
mod connector;
|
|
/// Peer-related errors.
|
|
mod error;
|
|
/// Performs peer handshakes.
|
|
mod handshake;
|
|
|
|
use client::ClientRequest;
|
|
use error::ErrorSlot;
|
|
|
|
pub use client::Client;
|
|
pub use connection::Connection;
|
|
pub use connector::Connector;
|
|
pub use error::{HandshakeError, PeerError, SharedPeerError};
|
|
pub use handshake::Handshake;
|