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

A complete UDP client type satisfying IUdpClient interface. More...

#include <transport.h>

Concept definition

template<typename T>
A complete UDP client type satisfying IUdpClient interface.
Definition transport.h:221
A type that supports UDP connection operations.
Definition transport.h:148
A type that can report UDP connection status.
Definition transport.h:197
A type that can send UDP datagrams.
Definition transport.h:174

Detailed Description

A complete UDP client type satisfying IUdpClient interface.

Types satisfying this concept provide full UDP client functionality including connection management, sending, and status reporting. This concept matches the IUdpClient interface contract.

Example usage:

template<UdpClientLike U>
void send_statsd_metric(U& client, const std::string& metric) {
if (!client.is_connected()) {
client.connect("localhost", 8125);
}
client.send(metric);
}

Definition at line 221 of file transport.h.