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();
/// 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;
}