pea2pea 0.16.3

A small library allowing simple and quick creation of custom P2P nodes and networks.
Documentation
1
2
3
4
5
6
7
8
9
use crate::Pea2Pea;

/// Can be used to specify and enable network handshakes. Upon establishing a connection, both sides will
/// need to adhere to the specified handshake rules in order to finalize the connection and be able to send
/// or receive any messages.
pub trait Handshaking: Pea2Pea {
    /// Prepares the node to perform specified network handshakes.
    fn enable_handshaking(&self);
}