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

A callback type for handling data received on a specific session. More...

#include <network_concepts.h>

Concept definition

template<typename F, typename Session>
std::invocable<F, std::shared_ptr<Session>, const std::vector<uint8_t>&>
A callback type for handling data received on a specific session.

Detailed Description

A callback type for handling data received on a specific session.

Example usage:

template<typename Session, SessionDataHandler<Session> Handler>
void set_receive_handler(Handler&& handler) {
// handler receives session and data
}

Definition at line 161 of file network_concepts.h.