mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
fixed GH #640: can't get socket out of SocketNotification because of const
This commit is contained in:
parent
bb7eb42afc
commit
c85ad9f73d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user