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

View file

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