simplerr / Project-Warlock

Early stages of a 3D game based on the WC3 mod Warlock.
1 stars 0 forks source link

bool Client::ConnectToServer(string ip) returns true all the time #3

Open simplerr opened 11 years ago

simplerr commented 11 years ago

bool Client::ConnectToServer(string ip) { // [TODO] If this returns true it doesn't mean that the connection was successful. if(mRaknetPeer->Startup(1, &RakNet::SocketDescriptor(), 1) == RakNet::RAKNET_STARTED) { if(mRaknetPeer->Connect(ip.c_str(), 27020, NULL, NULL) == RakNet::CONNECTION_ATTEMPT_STARTED)
return true; }

return false;

}