|
Network System 0.1.1
High-performance modular networking library for scalable client-server applications
|
Modern server using new API. More...

Public Member Functions | |
| ModernServer (const std::string &id) | |
| bool | start (uint16_t port) |
| bool | stop () |
| void | enable_async_processing () |
| void | show_statistics () |
Private Member Functions | |
| void | process_message (const std::string &client_id, const std::string &message) |
Private Attributes | |
| std::string | server_id_ |
| uint16_t | port_ = 0 |
| bool | async_enabled_ = false |
| std::shared_ptr< core::messaging_server > | server_ |
| std::shared_ptr< integration::messaging_bridge > | bridge_ |
| std::vector< std::future< void > > | futures_ |
Modern server using new API.
Definition at line 40 of file modern_usage.cpp.
|
inline |
Definition at line 42 of file modern_usage.cpp.
References bridge_, kcenon::network::integration::thread_integration_manager::instance(), server_, and server_id_.

|
inline |
Definition at line 79 of file modern_usage.cpp.
References async_enabled_.
|
inlineprivate |
Definition at line 103 of file modern_usage.cpp.
References async_enabled_, futures_, kcenon::network::integration::container_manager::instance(), kcenon::network::integration::thread_integration_manager::instance(), and kcenon::network::message.

|
inline |
Definition at line 84 of file modern_usage.cpp.
References bridge_, kcenon::network::integration::thread_integration_manager::get_metrics(), kcenon::network::integration::thread_integration_manager::instance(), and kcenon::network::integration::thread_integration_manager::metrics::worker_threads.

|
inline |
Definition at line 54 of file modern_usage.cpp.
References port_, server_, and kcenon::network::core::messaging_server::start_server().

|
inline |
Definition at line 67 of file modern_usage.cpp.
References server_, and kcenon::network::core::messaging_server::stop_server().

|
private |
Definition at line 136 of file modern_usage.cpp.
Referenced by enable_async_processing(), and process_message().
|
private |
Definition at line 138 of file modern_usage.cpp.
Referenced by ModernServer(), and show_statistics().
|
private |
Definition at line 139 of file modern_usage.cpp.
Referenced by process_message().
|
private |
Definition at line 135 of file modern_usage.cpp.
Referenced by start().
|
private |
Definition at line 137 of file modern_usage.cpp.
Referenced by ModernServer(), start(), and stop().
|
private |
Definition at line 134 of file modern_usage.cpp.
Referenced by ModernServer().