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