16 #ifndef ALICEO2_MONITORING_TRANSPORTS_UDP_H 17 #define ALICEO2_MONITORING_TRANSPORTS_UDP_H 21 #include <boost/array.hpp> 22 #include <boost/asio.hpp> 23 #include <boost/algorithm/string.hpp> 43 UDP(
const std::string& hostname,
int port);
50 void send(std::string&& message)
override;
54 boost::asio::io_service mIoService;
57 boost::asio::ip::udp::socket mSocket;
60 boost::asio::ip::udp::endpoint mEndpoint;
67 #endif // ALICEO2_MONITORING_TRANSPORTS_UDP_H
Transport interface for backends.
Definition: TransportInterface.h:31
Transport that sends string formatted metrics via UDP.
Definition: UDP.h:37
~UDP()=default
Default destructor.
UDP(const std::string &hostname, int port)
Definition: UDP.cxx:29
void send(std::string &&message) override
Definition: UDP.cxx:38