From 0b86d061048e350605a6df9687df2007774a2293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ege=20=C3=87etin?= Date: Thu, 22 Feb 2024 14:15:17 +0300 Subject: [PATCH] Add on_monitor_stopped functions --- zmq.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zmq.hpp b/zmq.hpp index 29ac435..81e65b1 100644 --- a/zmq.hpp +++ b/zmq.hpp @@ -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_) @@ -2525,6 +2527,7 @@ class monitor_t #ifdef ZMQ_EVENT_MONITOR_STOPPED if (event->event == ZMQ_EVENT_MONITOR_STOPPED) { + on_monitor_stopped(); return false; }