mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-06 00:31:10 +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();
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user