|
Network System 0.1.1
High-performance modular networking library for scalable client-server applications
|
Advanced example: Managing accepted connections. More...

Public Member Functions | |
| void | start (std::unique_ptr< unified::i_listener > listener) |
| void | broadcast (std::span< const std::byte > data) |
Private Member Functions | |
| void | handle_new_connection (std::unique_ptr< unified::i_connection > conn) |
Private Attributes | |
| std::unique_ptr< unified::i_listener > | listener_ |
| std::map< std::string, std::unique_ptr< unified::i_connection > > | connections_ |
Advanced example: Managing accepted connections.
Shows how to get ownership of accepted connections for custom management.
Definition at line 109 of file unified_server_example.cpp.
|
inline |
Definition at line 123 of file unified_server_example.cpp.
References connections_.
|
inlineprivate |
Definition at line 130 of file unified_server_example.cpp.
References connections_.
Referenced by start().

|
inline |
Definition at line 111 of file unified_server_example.cpp.
References handle_new_connection(), listener_, kcenon::network::unified::i_listener::set_accept_callback(), and kcenon::network::unified::i_listener::start().

|
private |
Definition at line 154 of file unified_server_example.cpp.
Referenced by broadcast(), and handle_new_connection().
|
private |
Definition at line 153 of file unified_server_example.cpp.
Referenced by start().