25 lines
685 B
Rust
25 lines
685 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 client::ClientRequestReceiver;
|
|
use client::InProgressClientRequest;
|
|
use client::MustUseOneshotSender;
|
|
use error::ErrorSlot;
|
|
|
|
pub use client::Client;
|
|
pub use connection::Connection;
|
|
pub use connector::Connector;
|
|
pub use error::{HandshakeError, PeerError, SharedPeerError};
|
|
pub use handshake::{ConnectedAddr, Handshake, HandshakeRequest};
|