From c85ad9f73d883eaf6293fe8d7d3ce417be9784fe Mon Sep 17 00:00:00 2001 From: Guenter Obiltschnig Date: Wed, 17 Dec 2014 00:06:13 +0100 Subject: [PATCH] fixed GH #640: can't get socket out of SocketNotification because of const --- Net/include/Poco/Net/SocketNotification.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Net/include/Poco/Net/SocketNotification.h b/Net/include/Poco/Net/SocketNotification.h index fc6eba97c..bf8c60d4c 100644 --- a/Net/include/Poco/Net/SocketNotification.h +++ b/Net/include/Poco/Net/SocketNotification.h @@ -43,10 +43,10 @@ public: virtual ~SocketNotification(); /// Destroys the SocketNotification. - SocketReactor& source(); + SocketReactor& source() const; /// Returns the SocketReactor that generated the notification. - Socket& socket(); + Socket socket() const; /// Returns the socket that caused the notification. private: @@ -137,13 +137,13 @@ public: // // inlines // -inline SocketReactor& SocketNotification::source() +inline SocketReactor& SocketNotification::source() const { return *_pReactor; } -inline Socket& SocketNotification::socket() +inline Socket SocketNotification::socket() const { return _socket; }