16 #ifndef ALICEO2_MONITORING_TRANSPORTS_UNIX_H 17 #define ALICEO2_MONITORING_TRANSPORTS_UNIX_H 21 #include <boost/array.hpp> 22 #include <boost/asio.hpp> 23 #include <boost/algorithm/string.hpp> 42 Unix(
const std::string& socketPath);
48 void send(std::string&& message)
override;
52 boost::asio::io_service mIoService;
53 #if defined(BOOST_ASIO_HAS_LOCAL_SOCKETS) 54 boost::asio::local::datagram_protocol::socket mSocket;
58 boost::asio::local::datagram_protocol::endpoint mEndpoint;
59 #endif // defined(BOOST_ASIO_HAS_LOCAL_SOCKETS) 66 #endif // ALICEO2_MONITORING_TRANSPORTS_UNIX_H Unix(const std::string &socketPath)
~Unix()=default
Default destructor.
Transport interface for backends.
Definition: TransportInterface.h:31
Transport that sends string formatted metrics via Unix datagram socket.
Definition: Unix.h:37
void send(std::string &&message) override