|
|
|
@ -1550,8 +1550,6 @@ static void AsyncLookupCallback (
|
|
|
|
|
unsigned addrCount, |
|
|
|
|
const NetAddress addrs[] |
|
|
|
|
) { |
|
|
|
|
REF(param); |
|
|
|
|
|
|
|
|
|
if (!addrCount) { |
|
|
|
|
ReportNetError(kNetProtocolCli2Auth, kNetErrNameLookupFailed); |
|
|
|
|
return; |
|
|
|
@ -2005,9 +2003,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); |
|
|
|
@ -2538,8 +2533,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); |
|
|
|
@ -2601,8 +2594,6 @@ bool AccountExistsRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
|
|
|
|
|
const Auth2Cli_AccountExistsReply & reply = *(const Auth2Cli_AccountExistsReply *)msg; |
|
|
|
|
|
|
|
|
|
m_exists = reply.exists; |
|
|
|
@ -2710,8 +2701,6 @@ bool LoginRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
|
|
|
|
|
dword msgId = (dword)*msg; |
|
|
|
|
switch (msgId) { |
|
|
|
|
case kAuth2Cli_AcctPlayerInfo: { |
|
|
|
@ -2799,7 +2788,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; |
|
|
|
@ -2872,7 +2860,6 @@ bool AccountCreateRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
const Auth2Cli_AcctCreateReply & reply = *(const Auth2Cli_AcctCreateReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -2944,7 +2931,6 @@ bool AccountCreateFromKeyRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
const Auth2Cli_AcctCreateFromKeyReply & reply = *(const Auth2Cli_AcctCreateFromKeyReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -3012,7 +2998,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; |
|
|
|
@ -3179,7 +3164,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; |
|
|
|
@ -3241,7 +3225,6 @@ bool AccountChangePasswordRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
const Auth2Cli_AcctChangePasswordReply & reply = *(const Auth2Cli_AcctChangePasswordReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -3297,7 +3280,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)) |
|
|
|
@ -3359,7 +3341,6 @@ bool AccountSetRolesRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
const Auth2Cli_AcctSetRolesReply & reply = *(const Auth2Cli_AcctSetRolesReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -3417,7 +3398,6 @@ bool AccountSetBillingTypeRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
const Auth2Cli_AcctSetBillingTypeReply & reply = *(const Auth2Cli_AcctSetBillingTypeReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -3472,7 +3452,6 @@ bool AccountActivateRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
const Auth2Cli_AcctActivateReply & reply = *(const Auth2Cli_AcctActivateReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -3527,7 +3506,6 @@ bool FileListRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
const Auth2Cli_FileListReply & reply = *(const Auth2Cli_FileListReply *) msg; |
|
|
|
|
|
|
|
|
|
dword wcharCount = reply.wcharCount; |
|
|
|
@ -3643,7 +3621,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)) { |
|
|
|
@ -3978,8 +3955,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)) { |
|
|
|
@ -4056,8 +4031,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)) { |
|
|
|
@ -4126,8 +4099,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)) |
|
|
|
@ -4196,8 +4167,6 @@ bool VaultSaveNodeTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
|
|
|
|
|
const Auth2Cli_VaultSaveNodeReply & reply = *(const Auth2Cli_VaultSaveNodeReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -4261,8 +4230,6 @@ bool VaultAddNodeTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
|
|
|
|
|
const Auth2Cli_VaultAddNodeReply & reply = *(const Auth2Cli_VaultAddNodeReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -4323,8 +4290,6 @@ bool VaultRemoveNodeTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
|
|
|
|
|
const Auth2Cli_VaultRemoveNodeReply & reply = *(const Auth2Cli_VaultRemoveNodeReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -4396,7 +4361,6 @@ bool SetPlayerBanStatusRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
const Auth2Cli_SetPlayerBanStatusReply & reply = *(const Auth2Cli_SetPlayerBanStatusReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -4454,7 +4418,6 @@ bool ChangePlayerNameRequestTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
const Auth2Cli_ChangePlayerNameReply & reply = *(const Auth2Cli_ChangePlayerNameReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -4516,7 +4479,6 @@ bool SendFriendInviteTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
const Auth2Cli_SendFriendInviteReply & reply = *(const Auth2Cli_SendFriendInviteReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -4607,7 +4569,6 @@ bool ScoreCreateTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
const Auth2Cli_ScoreCreateReply & reply = *(const Auth2Cli_ScoreCreateReply *) msg; |
|
|
|
|
|
|
|
|
|
m_scoreId = reply.scoreId; |
|
|
|
@ -4667,7 +4628,6 @@ bool ScoreDeleteTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
const Auth2Cli_ScoreDeleteReply & reply = *(const Auth2Cli_ScoreDeleteReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -4734,7 +4694,6 @@ bool ScoreGetScoresTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
const Auth2Cli_ScoreGetScoresReply & reply = *(const Auth2Cli_ScoreGetScoresReply *) msg; |
|
|
|
|
|
|
|
|
|
if (reply.scoreCount > 0) { |
|
|
|
@ -4810,7 +4769,6 @@ bool ScoreAddPointsTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
const Auth2Cli_ScoreAddPointsReply & reply = *(const Auth2Cli_ScoreAddPointsReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -4873,7 +4831,6 @@ bool ScoreTransferPointsTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
const Auth2Cli_ScoreTransferPointsReply & reply = *(const Auth2Cli_ScoreTransferPointsReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -4933,7 +4890,6 @@ bool ScoreSetPointsTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
const Auth2Cli_ScoreSetPointsReply & reply = *(const Auth2Cli_ScoreSetPointsReply *) msg; |
|
|
|
|
|
|
|
|
|
m_result = reply.result; |
|
|
|
@ -5014,7 +4970,6 @@ bool ScoreGetRanksTrans::Recv (
|
|
|
|
|
const byte msg[], |
|
|
|
|
unsigned bytes |
|
|
|
|
) { |
|
|
|
|
REF(bytes); |
|
|
|
|
const Auth2Cli_ScoreGetRanksReply & reply = *(const Auth2Cli_ScoreGetRanksReply *) msg; |
|
|
|
|
|
|
|
|
|
if (reply.rankCount > 0) { |
|
|
|
@ -5719,7 +5674,6 @@ unsigned NetCliAuthVaultNodeSave (
|
|
|
|
|
void NetCliAuthVaultNodeDelete ( |
|
|
|
|
unsigned nodeId |
|
|
|
|
) { |
|
|
|
|
REF(nodeId); |
|
|
|
|
hsAssert(false, "eric, implement me"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -5852,7 +5806,6 @@ void NetCliAuthSetRecvBufferHandler (
|
|
|
|
|
void NetCliAuthSendCCRPetition ( |
|
|
|
|
const wchar * petitionText |
|
|
|
|
) { |
|
|
|
|
REF(petitionText); |
|
|
|
|
hsAssert(false, "eric, implement me."); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|