|
|
|
@ -1533,8 +1533,6 @@ static void AsyncLookupCallback (
|
|
|
|
|
unsigned addrCount, |
|
|
|
|
const NetAddress addrs[] |
|
|
|
|
) { |
|
|
|
|
ref(param); |
|
|
|
|
|
|
|
|
|
if (!addrCount) { |
|
|
|
|
ReportNetError(kNetProtocolCli2Auth, kNetErrNameLookupFailed); |
|
|
|
|
return; |
|
|
|
@ -1988,9 +1986,6 @@ static bool Recv_KickedOff (
|
|
|
|
|
unsigned bytes, |
|
|
|
|
void * param |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
ref(param); |
|
|
|
|
|
|
|
|
|
const Auth2Cli_KickedOff & msg = *(const Auth2Cli_KickedOff *)buffer; |
|
|
|
|
|
|
|
|
|
ReportNetError(kNetProtocolCli2Auth, msg.reason); |
|
|
|
@ -2521,8 +2516,6 @@ bool PingRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
|
|
|
|
|
const Auth2Cli_PingReply & reply = *(const Auth2Cli_PingReply *)msg; |
|
|
|
|
|
|
|
|
|
m_payload.Set(reply.payload, reply.payloadBytes); |
|
|
|
@ -2584,8 +2577,6 @@ bool AccountExistsRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
|
|
|
|
|
const Auth2Cli_AccountExistsReply & reply = *(const Auth2Cli_AccountExistsReply *)msg; |
|
|
|
|
|
|
|
|
|
m_exists = reply.exists; |
|
|
|
@ -2693,8 +2684,6 @@ bool LoginRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
|
|
|
|
|
dword msgId = (dword)*msg; |
|
|
|
|
switch (msgId) { |
|
|
|
|
case kAuth2Cli_AcctPlayerInfo: { |
|
|
|
@ -2782,7 +2771,6 @@ bool AgeRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_AgeReply & reply = *(const Auth2Cli_AgeReply *) msg; |
|
|
|
|
m_gameSrvNode = reply.gameSrvNode; |
|
|
|
|
m_ageMcpId = reply.ageMcpId; |
|
|
|
@ -2855,7 +2843,6 @@ bool AccountCreateRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_AcctCreateReply & reply = *(const Auth2Cli_AcctCreateReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -2927,7 +2914,6 @@ bool AccountCreateFromKeyRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_AcctCreateFromKeyReply & reply = *(const Auth2Cli_AcctCreateFromKeyReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -2995,7 +2981,6 @@ bool PlayerCreateRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_PlayerCreateReply & reply = *(const Auth2Cli_PlayerCreateReply *) msg; |
|
|
|
|
if (!IS_NET_ERROR(reply.result)) { |
|
|
|
|
m_playerInfo.playerInt = reply.playerInt; |
|
|
|
@ -3162,7 +3147,6 @@ bool SetPlayerRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_AcctSetPlayerReply & reply = *(const Auth2Cli_AcctSetPlayerReply *) msg; |
|
|
|
|
m_result = reply.result; |
|
|
|
|
m_state = kTransStateComplete; |
|
|
|
@ -3224,7 +3208,6 @@ bool AccountChangePasswordRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_AcctChangePasswordReply & reply = *(const Auth2Cli_AcctChangePasswordReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -3280,7 +3263,6 @@ bool GetPublicAgeListTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_PublicAgeList & reply = *(const Auth2Cli_PublicAgeList *) msg; |
|
|
|
|
|
|
|
|
|
if (IS_NET_SUCCESS(reply.result)) |
|
|
|
@ -3342,7 +3324,6 @@ bool AccountSetRolesRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_AcctSetRolesReply & reply = *(const Auth2Cli_AcctSetRolesReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -3400,7 +3381,6 @@ bool AccountSetBillingTypeRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_AcctSetBillingTypeReply & reply = *(const Auth2Cli_AcctSetBillingTypeReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -3455,7 +3435,6 @@ bool AccountActivateRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_AcctActivateReply & reply = *(const Auth2Cli_AcctActivateReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -3510,7 +3489,6 @@ bool FileListRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_FileListReply & reply = *(const Auth2Cli_FileListReply *) msg; |
|
|
|
|
|
|
|
|
|
dword wcharCount = reply.wcharCount; |
|
|
|
@ -3626,7 +3604,6 @@ bool FileDownloadRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_FileDownloadChunk & reply = *(const Auth2Cli_FileDownloadChunk *) msg; |
|
|
|
|
|
|
|
|
|
if (IS_NET_ERROR(reply.result)) { |
|
|
|
@ -3961,8 +3938,6 @@ bool VaultFetchNodeTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
|
|
|
|
|
const Auth2Cli_VaultNodeFetched & reply = *(const Auth2Cli_VaultNodeFetched *) msg; |
|
|
|
|
|
|
|
|
|
if (IS_NET_SUCCESS(reply.result)) { |
|
|
|
@ -4039,8 +4014,6 @@ bool VaultFindNodeTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
|
|
|
|
|
const Auth2Cli_VaultNodeFindReply & reply = *(const Auth2Cli_VaultNodeFindReply *) msg; |
|
|
|
|
|
|
|
|
|
if (IS_NET_SUCCESS(reply.result)) { |
|
|
|
@ -4109,8 +4082,6 @@ bool VaultCreateNodeTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
|
|
|
|
|
const Auth2Cli_VaultNodeCreated & reply = *(const Auth2Cli_VaultNodeCreated *) msg; |
|
|
|
|
|
|
|
|
|
if (IS_NET_SUCCESS(reply.result)) |
|
|
|
@ -4179,8 +4150,6 @@ bool VaultSaveNodeTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
|
|
|
|
|
const Auth2Cli_VaultSaveNodeReply & reply = *(const Auth2Cli_VaultSaveNodeReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -4244,8 +4213,6 @@ bool VaultAddNodeTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
|
|
|
|
|
const Auth2Cli_VaultAddNodeReply & reply = *(const Auth2Cli_VaultAddNodeReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -4306,8 +4273,6 @@ bool VaultRemoveNodeTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
|
|
|
|
|
const Auth2Cli_VaultRemoveNodeReply & reply = *(const Auth2Cli_VaultRemoveNodeReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -4379,7 +4344,6 @@ bool SetPlayerBanStatusRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_SetPlayerBanStatusReply & reply = *(const Auth2Cli_SetPlayerBanStatusReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -4437,7 +4401,6 @@ bool ChangePlayerNameRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_ChangePlayerNameReply & reply = *(const Auth2Cli_ChangePlayerNameReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -4499,7 +4462,6 @@ bool SendFriendInviteTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_SendFriendInviteReply & reply = *(const Auth2Cli_SendFriendInviteReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -4590,7 +4552,6 @@ bool ScoreCreateTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_ScoreCreateReply & reply = *(const Auth2Cli_ScoreCreateReply *) msg; |
|
|
|
|
|
|
|
|
|
m_scoreId = reply.scoreId; |
|
|
|
@ -4650,7 +4611,6 @@ bool ScoreDeleteTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_ScoreDeleteReply & reply = *(const Auth2Cli_ScoreDeleteReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -4717,7 +4677,6 @@ bool ScoreGetScoresTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_ScoreGetScoresReply & reply = *(const Auth2Cli_ScoreGetScoresReply *) msg; |
|
|
|
|
|
|
|
|
|
if (reply.scoreCount > 0) { |
|
|
|
@ -4793,7 +4752,6 @@ bool ScoreAddPointsTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_ScoreAddPointsReply & reply = *(const Auth2Cli_ScoreAddPointsReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -4856,7 +4814,6 @@ bool ScoreTransferPointsTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_ScoreTransferPointsReply & reply = *(const Auth2Cli_ScoreTransferPointsReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -4916,7 +4873,6 @@ bool ScoreSetPointsTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_ScoreSetPointsReply & reply = *(const Auth2Cli_ScoreSetPointsReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -4997,7 +4953,6 @@ bool ScoreGetRanksTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
ref(bytes); |
|
|
|
|
const Auth2Cli_ScoreGetRanksReply & reply = *(const Auth2Cli_ScoreGetRanksReply *) msg; |
|
|
|
|
|
|
|
|
|
if (reply.rankCount > 0) { |
|
|
|
@ -5693,7 +5648,6 @@ unsigned NetCliAuthVaultNodeSave (
|
|
|
|
|
void NetCliAuthVaultNodeDelete ( |
|
|
|
|
unsigned nodeId |
|
|
|
|
) { |
|
|
|
|
ref(nodeId); |
|
|
|
|
hsAssert(false, "eric, implement me"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -5826,7 +5780,6 @@ void NetCliAuthSetRecvBufferHandler (
|
|
|
|
|
void NetCliAuthSendCCRPetition ( |
|
|
|
|
const wchar * petitionText |
|
|
|
|
) { |
|
|
|
|
ref(petitionText); |
|
|
|
|
hsAssert(false, "eric, implement me."); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|