Crate snarkos_node_router

Crate snarkos_node_router 

Source

Re-exports§

pub use snarkos_node_router_messages as messages;

Macros§

expect_message
A macro unwrapping the expected handshake message or returning an error for unexpected messages.

Structs§

Cache
CandidatePeer
A candidate peer.
ConnectedPeer
A fully connected peer.
ConnectingPeer
A candidate peer.
InnerRouter
Router
The router keeps track of connected and connecting peers. The actual network communication happens in Inbound/Outbound, which is implemented by Validator, Prover, and Client.

Enums§

Peer
A peer of any connection status.

Constants§

DEFAULT_NODE_PORT
The default port used by the router.

Traits§

Heartbeat
Inbound
Outbound
Routing

Functions§

max
A helper function to compute the maximum of two numbers. See Rust issue 92391: https://github.com/rust-lang/rust/issues/92391.