Common System 0.2.0
Common interfaces and patterns for system integration
Loading...
Searching...
No Matches
kcenon::common::concepts::UdpConnectionStatus Concept Reference

A type that can report UDP connection status. More...

#include <transport.h>

Concept definition

template<typename T>
concept kcenon::common::concepts::UdpConnectionStatus = requires(const T t) {
{ t.is_connected() } -> std::convertible_to<bool>;
}
A type that can report UDP connection status.
Definition transport.h:197

Detailed Description

A type that can report UDP connection status.

Types satisfying this concept can report whether they are currently connected to a remote endpoint.

Example usage:

template<UdpConnectionStatus U>
bool ensure_connected(const U& client) {
return client.is_connected();
}

Definition at line 197 of file transport.h.