|
Network System 0.1.1
High-performance modular networking library for scalable client-server applications
|
Example of using network_system with modern API and Result<T> pattern. More...
#include <iostream>#include <memory>#include <thread>#include <chrono>#include <vector>#include <future>#include "kcenon/network/network_system.h"
Go to the source code of this file.
Classes | |
| class | ModernServer |
| Modern server using new API. More... | |
| class | ModernClient |
| Modern client using new API. More... | |
Functions | |
| void | demonstrate_advanced_features () |
| Demonstrate advanced features. | |
| int | main (int argc, char *argv[]) |
| Main function demonstrating modern usage. | |
Example of using network_system with modern API and Result<T> pattern.
This example demonstrates:
Note: All primary APIs (start_server, start_client, send_packet, etc.) now return Result<T> for type-safe error handling instead of throwing exceptions or using callback-only error reporting.
Definition in file modern_usage.cpp.
| void demonstrate_advanced_features | ( | ) |
Demonstrate advanced features.
Definition at line 224 of file modern_usage.cpp.
References kcenon::network::integration::container_manager::instance(), kcenon::network::integration::thread_integration_manager::instance(), and kcenon::network::integration::container_manager::register_container().
Referenced by main().


| int main | ( | int | argc, |
| char * | argv[] ) |
Main function demonstrating modern usage.
Definition at line 281 of file modern_usage.cpp.
References demonstrate_advanced_features().
