Module jormungandr::network::p2p::comm
source · Expand description
This module is responsible for handling active peers and communication in a p2p setting. It takes care of managing connections with said peers and sending messages to them. The topology task is instead responsible for the discovery of active peers.
Modules
- peer_map 🔒
Structs
- Handle used by the per-peer communication tasks to produce an outbound subscription stream towards the peer.
- Options for Peers::add_connecting
- Future for executing async address lookup for the given node id from Peers.
- Stream used as the outbound half of a subscription stream.
- State of the communication streams that a single peer connection polls for outbound data and commands.
- The collection of currently connected peer nodes.
Enums
- Indicates whether this subscription belongs to a client or a server connection.