Common System 0.2.0
Common interfaces and patterns for system integration
Loading...
Searching...
No Matches
udp_client_interface.h File Reference

UDP client interface for transport abstraction. More...

#include <chrono>
#include <cstdint>
#include <functional>
#include <memory>
#include <optional>
#include <span>
#include <string>
#include <vector>
#include <kcenon/common/patterns/result.h>
Include dependency graph for udp_client_interface.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kcenon::common::interfaces::udp_endpoint
 Represents a UDP endpoint (host and port) More...
 
struct  kcenon::common::interfaces::udp_send_options
 Options for UDP send operations. More...
 
struct  kcenon::common::interfaces::udp_statistics
 Statistics for UDP client operations. More...
 
interface  kcenon::common::interfaces::IUdpClient
 Abstract interface for UDP client implementations. More...
 
class  kcenon::common::interfaces::null_udp_client
 Null implementation for when UDP transport is disabled. More...
 
interface  kcenon::common::interfaces::IUdpClientProvider
 Interface for modules that provide UDP client implementations. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::common
 Core interfaces.
 
namespace  kcenon::common::interfaces
 

Typedefs

using kcenon::common::interfaces::UdpClientFactory = std::function<std::shared_ptr<IUdpClient>()>
 Factory function type for creating UDP client instances.
 

Detailed Description

UDP client interface for transport abstraction.

This header defines the abstract UDP client interface that enables dependency injection for UDP communication across the ecosystem. Primary use cases include metric reporting (StatsD, Prometheus) and low-latency message delivery.

Definition in file udp_client_interface.h.