Fixes to handshake and socket wrapper

This commit is contained in:
Vinnie Falco
2013-08-16 16:10:55 -07:00
parent 4e908d3e96
commit d959af430e
8 changed files with 30 additions and 20 deletions

View File

@@ -41,7 +41,7 @@ void TestPeerLogicSyncClient::on_connect ()
return ;
}
if (socket ().requires_handshake ())
if (socket ().needs_handshake ())
{
if (failure (socket ().handshake (to_handshake_type (get_role ()), error ())))
return;
@@ -90,7 +90,7 @@ void TestPeerLogicSyncClient::on_connect ()
}
}
if (socket ().requires_handshake ())
if (socket ().needs_handshake ())
{
if (failure (socket ().shutdown (error ()), true))
return;