Fixes to handshake and socket wrapper

This commit is contained in:
Vinnie Falco committed 2013-08-17 21:09:59 -07:00
1 parent 4e908d3e96
commit d959af430e
8 files changed
+30 -20

No files matched your search

@@ -34,7 +34,7 @@ TestPeerBasics::Model TestPeerLogicSyncServer::get_model () const noexcept
void TestPeerLogicSyncServer::on_connect ()
{
if (socket ().requires_handshake ())
if (socket ().needs_handshake ())
{
if (failure (socket ().handshake (to_handshake_type (get_role ()), error ())))
return;
@@ -66,7 +66,7 @@ void TestPeerLogicSyncServer::on_connect ()
return;
}
if (socket ().requires_handshake ())
if (socket ().needs_handshake ())
{
if (failure (socket ().shutdown (error ()), true))
return;