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
50
51
52
53
54
55
56
57
58
59
60
//! # Network Protocol
//! This file is part of the Network Protocol project.
//!
//! It provides the main entry point for the protocol layer,
//! including the core components, transport mechanisms,
//! and utility functions.
//!
//! The protocol is designed to be modular, high-performance,
//! and suitable for local, remote, and cluster communication.
//!
//! The main components include:
//! - Core: packet handling, codec, error management
//! - Transport: network communication, remote operations
//! - Protocol: message routing, handshake logic
//! - Service: client and daemon abstractions
//! - Utils: cryptography, compression, time management
//!
//! The protocol layer is built with a focus on performance,
//! scalability, and ease of integration with other systems.
// message + handshake routing
// client/daemon abstraction
// will add files shortly
// crypto/compression/time/etc
pub use *;
pub use PacketCodec;
pub use Packet;
pub use ;
pub use *;
pub use SessionCache;
pub use ReplayCache;
/// Initialize the library with default logging configuration.
/// This should be called early in your application setup.
/// Initialize the library with custom logging configuration.
///
/// # Example
/// ```
/// use network_protocol::{init_with_config, utils::logging::LogConfig};
/// use tracing::Level;
///
/// let config = LogConfig {
/// app_name: "my-application".to_string(),
/// log_level: Level::DEBUG,
/// ..Default::default()
/// };
///
/// init_with_config(&config);
/// ```