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

A callback type for handling errors on a specific session. More...

#include <network_concepts.h>

Concept definition

template<typename F, typename Session>
std::invocable<F, std::shared_ptr<Session>, std::error_code>
A callback type for handling errors on a specific session.

Detailed Description

A callback type for handling errors on a specific session.

Example usage:

template<typename Session, SessionErrorHandler<Session> Handler>
void set_error_handler(Handler&& handler) {
// handler receives session and error code
}

Definition at line 177 of file network_concepts.h.