Module basic_connection_handling

Module basic_connection_handling 

Source

Structs§

AllNodesConnectionsAreSymmetric
Connections between all peers are symmetric, i.e. iff the node1 has the node2 among its active peers, then the node2 should have the node1 as its active peers.
ConnectionStability
Two nodes should stay connected for a long period of time.
MaxNumberOfPeersIncoming
A Rust node’s incoming connections should be limited.
MaxNumberOfPeersIs1
Two nodes with max peers = 1 can connect to each other.
SeedConnectionsAreSymmetric
Connections with other peers are symmetric for seed node, i.e. iff a node is the seed’s peer, then it has the node among its peers.
SimultaneousConnections
Two nodes should properly handle a situation when they are connecting to each other simultaneously.

Functions§

has_active_peer 🔒