mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-18 08:07:12 +02:00
Update POCO to 1.11.0
This commit is contained in:
19
vendor/POCO/Net/testsuite/src/EchoServer.cpp
vendored
19
vendor/POCO/Net/testsuite/src/EchoServer.cpp
vendored
@ -23,7 +23,8 @@ using Poco::Net::SocketAddress;
|
||||
EchoServer::EchoServer():
|
||||
_socket(SocketAddress()),
|
||||
_thread("EchoServer"),
|
||||
_stop(false)
|
||||
_stop(false),
|
||||
_done(false)
|
||||
{
|
||||
_thread.start(*this);
|
||||
_ready.wait();
|
||||
@ -33,7 +34,8 @@ EchoServer::EchoServer():
|
||||
EchoServer::EchoServer(const Poco::Net::SocketAddress& address):
|
||||
_socket(address),
|
||||
_thread("EchoServer"),
|
||||
_stop(false)
|
||||
_stop(false),
|
||||
_done(false)
|
||||
{
|
||||
_thread.start(*this);
|
||||
_ready.wait();
|
||||
@ -78,5 +80,18 @@ void EchoServer::run()
|
||||
}
|
||||
}
|
||||
}
|
||||
_done = true;
|
||||
}
|
||||
|
||||
|
||||
void EchoServer::stop()
|
||||
{
|
||||
_stop = true;
|
||||
}
|
||||
|
||||
|
||||
bool EchoServer::done()
|
||||
{
|
||||
return _done;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user