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

A callback type for handling received data. More...

#include <network_concepts.h>

Concept definition

template<typename F>
std::invocable<F, const std::vector<uint8_t>&>
A callback type for handling received data.

Detailed Description

A callback type for handling received data.

Functions satisfying this concept can be used as receive callbacks for network data.

Example usage:

template<DataReceiveHandler Handler>
void set_receive_handler(Handler&& handler) {
// handler will be called with const std::vector<uint8_t>&
}

Definition at line 100 of file network_concepts.h.