Network System 0.1.1
High-performance modular networking library for scalable client-server applications
Loading...
Searching...
No Matches
kcenon::network::concepts::DisconnectionHandler Concept Reference

A callback type for handling disconnection events with session ID. More...

#include <network_concepts.h>

Concept definition

template<typename F>
concept kcenon::network::concepts::DisconnectionHandler = std::invocable<F, const std::string&>
A callback type for handling disconnection events with session ID.

Detailed Description

A callback type for handling disconnection events with session ID.

Example usage:

template<DisconnectionHandler Handler>
void set_disconnect_handler(Handler&& handler) {
// handler receives session ID string
}

Definition at line 193 of file network_concepts.h.