|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Abstract UDP transport interface. More...
#include <udp_transport.h>


Public Member Functions | |
| virtual | ~udp_transport ()=default |
| virtual common::VoidResult | connect (const std::string &host, uint16_t port)=0 |
| Connect to a remote UDP endpoint. | |
| virtual common::VoidResult | send (std::span< const uint8_t > data)=0 |
| Send data to the connected endpoint. | |
| common::VoidResult | send (const std::string &data) |
| Send string data to the connected endpoint. | |
| virtual bool | is_connected () const =0 |
| Check if connected to an endpoint. | |
| virtual void | disconnect ()=0 |
| Disconnect from the current endpoint. | |
| virtual bool | is_available () const =0 |
| Check if transport is available. | |
| virtual std::string | name () const =0 |
| Get transport name. | |
| virtual udp_statistics | get_statistics () const =0 |
| Get transport statistics. | |
| virtual void | reset_statistics ()=0 |
| Reset statistics. | |
Abstract UDP transport interface.
Provides a common interface for UDP-based metric delivery, with implementations for stub (testing), simple (basic), and network_system-backed transports.
Definition at line 55 of file udp_transport.h.
|
virtualdefault |
|
pure virtual |
Connect to a remote UDP endpoint.
| host | Remote hostname or IP address |
| port | Remote port number |
Implemented in kcenon::monitoring::stub_udp_transport.
|
pure virtual |
Disconnect from the current endpoint.
Implemented in kcenon::monitoring::stub_udp_transport.
|
pure virtual |
Get transport statistics.
Implemented in kcenon::monitoring::stub_udp_transport.
|
pure virtual |
Check if transport is available.
Implemented in kcenon::monitoring::stub_udp_transport.
|
pure virtual |
Check if connected to an endpoint.
Implemented in kcenon::monitoring::stub_udp_transport.
|
pure virtual |
Get transport name.
Implemented in kcenon::monitoring::stub_udp_transport.
|
pure virtual |
Reset statistics.
Implemented in kcenon::monitoring::stub_udp_transport.
|
inline |
Send string data to the connected endpoint.
| data | String data to send |
Definition at line 79 of file udp_transport.h.
References send().

|
pure virtual |
Send data to the connected endpoint.
| data | Data to send |
Implemented in kcenon::monitoring::stub_udp_transport.
Referenced by send().
