zebra/zebra-network/src/peer.rs

22 lines
544 B
Rust
Raw Normal View History

//! 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;
2019-11-27 11:48:41 -08:00
use error::ErrorSlot;
2019-11-27 11:27:17 -08:00
pub use client::Client;
pub use connection::Connection;
pub use connector::Connector;
pub use error::{HandshakeError, PeerError, SharedPeerError};
pub use handshake::Handshake;