Add on_monitor_stopped functions

This commit is contained in:
Ege Çetin 2024-02-22 14:15:17 +03:00
parent 6164cf7dbc
commit 0b86d06104

View File

@ -2384,6 +2384,8 @@ class monitor_t
_socket = socket_ref(); _socket = socket_ref();
} }
virtual void on_monitor_stopped() {}
#endif #endif
virtual void on_monitor_started() {} virtual void on_monitor_started() {}
virtual void on_event_connected(const zmq_event_t &event_, const char *addr_) virtual void on_event_connected(const zmq_event_t &event_, const char *addr_)
@ -2525,6 +2527,7 @@ class monitor_t
#ifdef ZMQ_EVENT_MONITOR_STOPPED #ifdef ZMQ_EVENT_MONITOR_STOPPED
if (event->event == ZMQ_EVENT_MONITOR_STOPPED) { if (event->event == ZMQ_EVENT_MONITOR_STOPPED) {
on_monitor_stopped();
return false; return false;
} }