Module network

Module network 

Source
Expand description

Network core functionality Network module

This module provides core networking functionality for the P2P Foundation. It handles peer connections, network events, and node lifecycle management.

Structs§

DHTConfig
DHT-specific configuration
NodeBuilder
Builder pattern for creating P2P nodes
NodeConfig
Configuration for a P2P node
P2PNetworkSender
Lightweight wrapper for P2PNode to implement NetworkSender
P2PNode
Main P2P node structure Main P2P network node that manages connections, routing, and communication
PeerInfo
Information about a connected peer
SecurityConfig
Security configuration

Enums§

ConnectionStatus
Connection status for a peer
NetworkEvent
Network events that can occur
P2PEvent
Network events that can occur in the P2P system
TrustLevel
Trust level for peer verification

Traits§

NetworkSender
Network sender trait for sending messages