Use deadline_timer to handle async logic properly

This commit is contained in:
Vinnie Falco
2013-08-09 23:14:58 -07:00
parent e8ad5a0e6b
commit 685af493a4
11 changed files with 328 additions and 69 deletions

View File

@@ -144,5 +144,10 @@ bool TestPeerBasics::unexpected (bool condition, boost::system::error_code& ec)
return ! expected (condition, ec);
}
bool TestPeerBasics::aborted (boost::system::error_code const& ec) noexcept
{
return ec == boost::asio::error::operation_aborted;
}
//------------------------------------------------------------------------------