fix for change for SF# 2807639

This commit is contained in:
Marian Krivos
2009-06-22 11:16:52 +00:00
parent 122fc1216e
commit c8e2c4f010

View File

@@ -54,7 +54,7 @@ using Poco::Net::ShutdownNotification;
using Poco::Net::ServerSocket; using Poco::Net::ServerSocket;
using Poco::Net::StreamSocket; using Poco::Net::StreamSocket;
using Poco::NObserver; using Poco::NObserver;
using Poco::Notification; using Poco::AutoPtr;
using Poco::Thread; using Poco::Thread;
using Poco::Util::ServerApplication; using Poco::Util::ServerApplication;
using Poco::Util::Application; using Poco::Util::Application;
@@ -93,7 +93,7 @@ public:
delete [] _pBuffer; delete [] _pBuffer;
} }
void onReadable(const Notification::Ptr& pNf) void onReadable(const AutoPtr<ReadableNotification>& pNf)
{ {
int n = _socket.receiveBytes(_pBuffer, BUFFER_SIZE); int n = _socket.receiveBytes(_pBuffer, BUFFER_SIZE);
if (n > 0) if (n > 0)
@@ -102,7 +102,7 @@ public:
delete this; delete this;
} }
void onShutdown(const Notification::Ptr& pNf) void onShutdown(const AutoPtr<ShutdownNotification>& pNf)
{ {
delete this; delete this;
} }
@@ -226,3 +226,4 @@ int main(int argc, char** argv)
EchoServer app; EchoServer app;
return app.run(argc, argv); return app.run(argc, argv);
} }