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

A callback type for reconnection attempt notifications. More...

#include <network_concepts.h>

Concept definition

template<typename F>
concept kcenon::network::concepts::RetryCallback = std::invocable<F, std::size_t>
A callback type for reconnection attempt notifications.

Detailed Description

A callback type for reconnection attempt notifications.

Example usage:

template<RetryCallback Handler>
void set_retry_handler(Handler&& handler) {
// handler receives attempt number
}

Definition at line 208 of file network_concepts.h.