Expand description
Implements a connection manager for communication with other federation members
The main interface is fedimint_core::net::IP2PConnections and
its main implementation is ReconnectP2PConnections, see these for
details.
Structsยง
- P2PConnection ๐
- P2PConnectionSM
Common ๐ - P2PConnection
State - P2PConnection
State ๐Machine - Reconnect
P2PConnections
Enumsยง
- P2PConnectionSM
State ๐ - Receive
Halt ๐ - Send
Halt ๐ - Why the send half of the connection stopped.
Constantsยง
- METADATA_
REFRESH_ ๐INTERVAL - How often live connection metadata (currently only the round-trip time) is re-published while a connection stays up.
- RECEIVE_
DRAIN_ ๐TIMEOUT - How long a halted send half waits for a frame that is already being read. A peer that stalls part way through a frame must not hold the state machine forever, so the wait is bounded. The same grace was proposed for both halves in #9121.