24 static void on_event(
const std::string &messageStr,
int level,
const char *addr =
nullptr);
48#if ZMQ_VERSION >= ZMQ_MAKE_VERSION(4, 3, 0) || \
49 (defined(ZMQ_BUILD_DRAFT_API) && ZMQ_VERSION >= ZMQ_MAKE_VERSION(4, 2, 3))
58#elif defined(ZMQ_BUILD_DRAFT_API) && ZMQ_VERSION >= ZMQ_MAKE_VERSION(4, 2, 1)
59 void on_event_handshake_failed(
const zmq_event_t & ,
const char *addr_)
override;
61 void on_event_handshake_succeed(
const zmq_event_t & ,
const char *addr_)
override;
91 void startMonitoring(zmq::socket_t *socket,
const std::string &monitorAddress);
void on_event_unknown(const zmq_event_t &, const char *addr_) override
void on_event_connect_retried(const zmq_event_t &, const char *addr_) override
ZeroMQMonitor()=default
Constructor.
ZeroMQMonitor & operator=(ZeroMQMonitor &&)=delete
Move assignment operator.
void on_event_disconnected(const zmq_event_t &, const char *addr_) override
void on_event_bind_failed(const zmq_event_t &, const char *addr_) override
void on_event_connect_delayed(const zmq_event_t &, const char *addr_) override
void on_event_listening(const zmq_event_t &, const char *addr_) override
void on_event_closed(const zmq_event_t &, const char *addr_) override
void startMonitoring(zmq::socket_t *socket, const std::string &monitorAddress)
void on_event_connected(const zmq_event_t &, const char *addr_) override
void on_event_handshake_succeeded(const zmq_event_t &, const char *addr_) override
void on_event_accepted(const zmq_event_t &, const char *addr_) override
std::unique_ptr< std::thread > _monitorThread
void on_event_handshake_failed_auth(const zmq_event_t &, const char *addr_) override
ZeroMQMonitor(const ZeroMQMonitor &)=delete
Copy constructor.
void on_event_accept_failed(const zmq_event_t &, const char *addr_) override
static void on_event(const std::string &messageStr, int level, const char *addr=nullptr)
void on_monitor_started() override
void on_event_handshake_failed_no_detail(const zmq_event_t &, const char *addr_) override
void on_event_handshake_failed_protocol(const zmq_event_t &, const char *addr_) override
~ZeroMQMonitor() override
std::atomic_flag _shouldStop
ZeroMQMonitor & operator=(ZeroMQMonitor)=delete
Copy assignment operator.
void on_event_close_failed(const zmq_event_t &, const char *addr_) override
ZeroMQMonitor(ZeroMQMonitor &&)=delete
Move constructor.