Move PeerRole to its own file

This commit is contained in:
Vinnie Falco
2013-08-10 12:16:46 -07:00
parent 85f4d7d025
commit 7735187d36
20 changed files with 136 additions and 68 deletions

View File

@@ -22,9 +22,9 @@ TestPeerLogicSyncServer::TestPeerLogicSyncServer (Socket& socket)
{
}
TestPeerBasics::Role TestPeerLogicSyncServer::get_role () const noexcept
PeerRole TestPeerLogicSyncServer::get_role () const noexcept
{
return Role::server;
return PeerRole::server;
}
TestPeerBasics::Model TestPeerLogicSyncServer::get_model () const noexcept
@@ -36,7 +36,7 @@ void TestPeerLogicSyncServer::on_connect ()
{
if (socket ().requires_handshake ())
{
if (failure (socket ().handshake (get_role (), error ())))
if (failure (socket ().handshake (to_handshake_type (get_role ()), error ())))
return;
}