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

A callback type for handling session events with a session pointer. More...

#include <network_concepts.h>

Concept definition

template<typename F, typename Session>
concept kcenon::network::concepts::SessionHandler = std::invocable<F, std::shared_ptr<Session>>
A callback type for handling session events with a session pointer.

Detailed Description

A callback type for handling session events with a session pointer.

Example usage:

template<typename Session, SessionHandler<Session> Handler>
void set_session_handler(Handler&& handler) {
// handler will be called with std::shared_ptr<Session>
}

Definition at line 146 of file network_concepts.h.