From faa58852cb181b78edbabfdfcfb9bcafd0008d89 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Thu, 13 Jan 2022 10:16:33 +0100 Subject: [PATCH] the LibEvHandler::monitor() class is no longer private-final to allow user-space programs to further enhance it --- include/amqpcpp/libev.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/amqpcpp/libev.h b/include/amqpcpp/libev.h index 17c6c346..705c9851 100644 --- a/include/amqpcpp/libev.h +++ b/include/amqpcpp/libev.h @@ -460,19 +460,19 @@ class LibEvHandler : public TcpHandler return _wrappers.back(); } +protected: /** * Method that is called by AMQP-CPP to register a filedescriptor for readability or writability * @param connection The TCP connection object that is reporting * @param fd The filedescriptor to be monitored * @param flags Should the object be monitored for readability or writability? */ - virtual void monitor(TcpConnection *connection, int fd, int flags) override final + virtual void monitor(TcpConnection *connection, int fd, int flags) override { // lookup the appropriate wrapper and start monitoring lookup(connection).monitor(fd, flags); } -protected: /** * Method that is called when the heartbeat timeout is negotiated between the server and the client. * @param connection The connection that suggested a heartbeat timeout