1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Network Module
//
// This module provides network functionality for the Runar system, including
// peer discovery, transport management, and network communication.
//
// ## Components
//
// - **Discovery**: Automatic peer discovery using multicast and memory-based discovery
// - **Transport**: QUIC-based network transport with TLS encryption
// - **Peer Management**: Connection pooling and peer state tracking
// - **Network Configuration**: Flexible configuration for different network topologies
//
// ## Key Features
//
// - **Peer Discovery**: Automatic discovery of other nodes in the network
// - **Secure Transport**: QUIC with TLS for encrypted communication
// - **Connection Pooling**: Efficient connection reuse and management
// - **Load Balancing**: Built-in load balancing for distributed services
// - **Network Isolation**: Support for multiple networks with proper boundaries
//
// ## Examples
//
// ```rust
// use runar_node::network::{NetworkConfig, DiscoveryOptions};
//
// // Configure networking
// let config = NetworkConfig::default()
// .with_discovery(DiscoveryOptions::multicast("224.0.0.1:8888"))
// .with_transport(TransportOptions::quic(8889));
//
// // Enable networking on a node
// let node_config = NodeConfig::new("my-node", "my-network")
// .with_network_config(config);
// ```
pub use ;
pub use ;
pub use ;