This commit is contained in:
malloc 2018-04-04 08:14:32 -05:00
parent 0425488769
commit 9de61fb44f

View file

@ -25,15 +25,17 @@ int main(int argc, char **argv) {
}
std::cout << "Listening ..." << std::endl;
server.Accept(&client);
bool check = server.Accept(&client);
std::cout << "Shaking ..." << std::endl;
bool loop = true;
while(loop) {
if(!client.Handshaked())
client.Handshake();
else
else {
std::cout << "Shook." << std::endl;
break;
}
}
server.Close();