private void IClientRegistered() { pnAuth2Cli_ClientRegisterReply reply = new pnAuth2Cli_ClientRegisterReply(); reply.Read(fStream); // This always happens as a result of a login request // This is such an implementation detail that there's really no need to expose it fSrvChg = reply.fChallenge; ILogin(fEvilTemporaryHack.fUser, fEvilTemporaryHack.fPass, fEvilTemporaryHack.fCallback); fEvilTemporaryHack = null; // Take out the trash... }
private void IRegisterClient() { pnCli2Auth_ClientRegisterRequest req = new pnCli2Auth_ClientRegisterRequest(); req.Read(fStream); // Double check the BuildID // This is mostly to ensure some dummy isn't trying to troll us // with some unproven netcode that really sucks. int? buildID = pngIni.Ini.GetInteger("Client.BuildID"); if (buildID.HasValue) if (buildID != req.fBuildID) { KickOff(ENetError.kNetErrOldBuildId); return; } pnAuth2Cli_ClientRegisterReply reply = new pnAuth2Cli_ClientRegisterReply(); reply.fChallenge = fChallenge; reply.Send(fStream); }