|
Network System 0.1.1
High-performance modular networking library for scalable client-server applications
|
Utility components for network_system. More...
Classes | |
| class | buffer_pool |
| Thread-safe memory pool for reusable byte buffers. More... | |
| class | callback_manager |
| Thread-safe callback storage and invocation utility. More... | |
| class | compression_pipeline |
| Message compression and decompression pipeline. More... | |
| struct | connection_health |
| Contains connection health metrics. More... | |
| class | connection_state |
| Thread-safe connection state management. More... | |
| class | health_monitor |
| Monitors connection health with heartbeat mechanism. More... | |
| class | lifecycle_manager |
| Thread-safe lifecycle state management for network components. More... | |
| class | memory_profiler |
| struct | memory_snapshot |
| class | resilient_client |
| Wrapper around messaging_client that adds automatic reconnection with exponential backoff and circuit breaker pattern. More... | |
| class | startable_base |
| CRTP base class providing unified start/stop lifecycle management. More... | |
| struct | tcp_client_callback_index |
| Callback indices for tcp_client_callbacks. More... | |
Typedefs | |
| using | tcp_client_callbacks |
| Callback manager for TCP client callbacks. | |
Enumerations | |
| enum class | compression_algorithm { none , lz4 , gzip , deflate } |
| Supported compression algorithms. More... | |
| enum class | connection_status : uint8_t { disconnected = 0 , connecting = 1 , connected = 2 , disconnecting = 3 } |
| Represents the connection state of a network component. More... | |
Functions | |
| auto | make_compress_function (std::shared_ptr< compression_pipeline > pipeline) -> std::function< std::vector< uint8_t >(const std::vector< uint8_t > &)> |
| Creates a compression function for pipeline integration. | |
| auto | make_decompress_function (std::shared_ptr< compression_pipeline > pipeline) -> std::function< std::vector< uint8_t >(const std::vector< uint8_t > &)> |
| Creates a decompression function for pipeline integration. | |
Utility components for network_system.
This namespace contains essential utility components:
All utilities use modern C++ patterns and are designed for:
Callback manager for TCP client callbacks.
Index mapping:
Definition at line 216 of file callback_manager.h.
|
strong |
Supported compression algorithms.
| Enumerator | |
|---|---|
| none | No compression |
| lz4 | LZ4 fast compression |
| gzip | GZIP compression (RFC 1952) |
| deflate | DEFLATE compression (RFC 1951) |
Definition at line 22 of file compression_pipeline.h.
|
strong |
Represents the connection state of a network component.
| Enumerator | |
|---|---|
| disconnected | Not connected. |
| connecting | Connection in progress. |
| connected | Successfully connected. |
| disconnecting | Disconnection in progress. |
Definition at line 17 of file connection_state.h.
| auto kcenon::network::utils::make_compress_function | ( | std::shared_ptr< compression_pipeline > | pipeline | ) | -> std::function< std::vector< uint8_t >(const std::vector< uint8_t > &)> |
Creates a compression function for pipeline integration.
| pipeline | Compression pipeline to use |
Definition at line 495 of file compression_pipeline.cpp.
References NETWORK_LOG_ERROR.
| auto kcenon::network::utils::make_decompress_function | ( | std::shared_ptr< compression_pipeline > | pipeline | ) | -> std::function< std::vector< uint8_t >(const std::vector< uint8_t > &)> |
Creates a decompression function for pipeline integration.
| pipeline | Compression pipeline to use |
Definition at line 509 of file compression_pipeline.cpp.
References NETWORK_LOG_ERROR.