fixed GH #640: can't get socket out of SocketNotification because of const

This commit is contained in:
Guenter Obiltschnig 2014-12-17 00:06:13 +01:00
parent bb7eb42afc
commit c85ad9f73d

View File

@ -43,10 +43,10 @@ public:
virtual ~SocketNotification(); virtual ~SocketNotification();
/// Destroys the SocketNotification. /// Destroys the SocketNotification.
SocketReactor& source(); SocketReactor& source() const;
/// Returns the SocketReactor that generated the notification. /// Returns the SocketReactor that generated the notification.
Socket& socket(); Socket socket() const;
/// Returns the socket that caused the notification. /// Returns the socket that caused the notification.
private: private:
@ -137,13 +137,13 @@ public:
// //
// inlines // inlines
// //
inline SocketReactor& SocketNotification::source() inline SocketReactor& SocketNotification::source() const
{ {
return *_pReactor; return *_pReactor;
} }
inline Socket& SocketNotification::socket() inline Socket SocketNotification::socket() const
{ {
return _socket; return _socket;
} }