Skip to content

Commit

Permalink
Merge pull request #631 from egecetin/master
Browse files Browse the repository at this point in the history
Add on_monitor_stopped function for monitor_t
  • Loading branch information
gummif authored Aug 12, 2024
2 parents 301871a + 0b86d06 commit 23cd83e
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 @@ -2387,6 +2387,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 @@ -2528,6 +2530,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 23cd83e

Please sign in to comment.