Module nakamoto_p2p::protocol::connmgr [−][src]
Peer connection manager.
Structs
Config | Connection manager configuration. |
ConnectionManager | Manages peer connections. |
Enums
Event | A connection-related event. |
Constants
CONNECTION_TIMEOUT | Time to wait for a new connection. TODO: Should be in config. |
IDLE_TIMEOUT | Time to wait until idle. |
MAX_INBOUND_PEERS | Maximum number of inbound peer connections. |
TARGET_OUTBOUND_PEERS | Target number of concurrent outbound peer connections. |
Traits
Connect | Ability to connect to peers. |
Events | Ability to emit events. |