mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-01-06 00:31:14 +01:00
Add on_monitor_stopped functions
This commit is contained in:
parent
6164cf7dbc
commit
0b86d06104
3
zmq.hpp
3
zmq.hpp
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user