Skip to content

Commit

Permalink
Add on_monitor_stopped functions
Browse files Browse the repository at this point in the history
  • Loading branch information
egecetin committed Feb 22, 2024
1 parent 6164cf7 commit 0b86d06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zmq.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2384,6 +2384,8 @@ class monitor_t

_socket = socket_ref();
}

virtual void on_monitor_stopped() {}
#endif
virtual void on_monitor_started() {}
virtual void on_event_connected(const zmq_event_t &event_, const char *addr_)
Expand Down Expand Up @@ -2525,6 +2527,7 @@ class monitor_t

#ifdef ZMQ_EVENT_MONITOR_STOPPED
if (event->event == ZMQ_EVENT_MONITOR_STOPPED) {
on_monitor_stopped();
return false;
}

Expand Down

0 comments on commit 0b86d06

Please sign in to comment.