mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 11:06:50 +01:00
fix for change for SF# 2807639
This commit is contained in:
@@ -54,7 +54,7 @@ using Poco::Net::ShutdownNotification;
|
||||
using Poco::Net::ServerSocket;
|
||||
using Poco::Net::StreamSocket;
|
||||
using Poco::NObserver;
|
||||
using Poco::Notification;
|
||||
using Poco::AutoPtr;
|
||||
using Poco::Thread;
|
||||
using Poco::Util::ServerApplication;
|
||||
using Poco::Util::Application;
|
||||
@@ -93,7 +93,7 @@ public:
|
||||
delete [] _pBuffer;
|
||||
}
|
||||
|
||||
void onReadable(const Notification::Ptr& pNf)
|
||||
void onReadable(const AutoPtr<ReadableNotification>& pNf)
|
||||
{
|
||||
int n = _socket.receiveBytes(_pBuffer, BUFFER_SIZE);
|
||||
if (n > 0)
|
||||
@@ -102,7 +102,7 @@ public:
|
||||
delete this;
|
||||
}
|
||||
|
||||
void onShutdown(const Notification::Ptr& pNf)
|
||||
void onShutdown(const AutoPtr<ShutdownNotification>& pNf)
|
||||
{
|
||||
delete this;
|
||||
}
|
||||
@@ -226,3 +226,4 @@ int main(int argc, char** argv)
|
||||
EchoServer app;
|
||||
return app.run(argc, argv);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user