mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Remove almost all uses of NetAddress.
This probably has a bunch of bugs because of Network Order/Host Order issues. If we intend to actually support BE architectures, these problems are going to get much much worse :(
This commit is contained in:
@ -591,23 +591,22 @@ static void INetCliAuthAgeRequestCallback (
|
||||
unsigned ageMcpId,
|
||||
unsigned ageVaultId,
|
||||
const Uuid & ageInstId,
|
||||
NetAddressNode gameAddr
|
||||
plNetAddress gameAddr
|
||||
) {
|
||||
if (!IS_NET_ERROR(result) || result == kNetErrVaultNodeNotFound) {
|
||||
s_age.ageInstId = ageInstId;
|
||||
s_age.ageVaultId = ageVaultId;
|
||||
|
||||
wchar_t gameAddrStr[64];
|
||||
wchar_t ageInstIdStr[64];
|
||||
NetAddressNodeToString(gameAddr, gameAddrStr, arrsize(gameAddrStr));
|
||||
plString gameAddrStr = gameAddr.GetHostString();
|
||||
LogMsg(
|
||||
kLogPerf,
|
||||
L"Connecting to game server %s, ageInstId %s",
|
||||
gameAddrStr,
|
||||
gameAddrStr.c_str(),
|
||||
GuidToString(ageInstId, ageInstIdStr, arrsize(ageInstIdStr))
|
||||
);
|
||||
NetCliGameDisconnect();
|
||||
NetCliGameStartConnect(gameAddr);
|
||||
NetCliGameStartConnect(gameAddr.GetHost());
|
||||
NetCliGameJoinAgeRequest(
|
||||
ageMcpId,
|
||||
s_account.accountUuid,
|
||||
|
@ -90,8 +90,8 @@ struct CliAuConn : AtomicRef {
|
||||
LINK(CliAuConn) link;
|
||||
AsyncSocket sock;
|
||||
NetCli * cli;
|
||||
wchar_t name[MAX_PATH];
|
||||
NetAddress addr;
|
||||
wchar_t name[MAX_PATH];
|
||||
plNetAddress addr;
|
||||
Uuid token;
|
||||
unsigned seq;
|
||||
unsigned serverChallenge;
|
||||
@ -1545,9 +1545,9 @@ static void Connect (
|
||||
//============================================================================
|
||||
static void AsyncLookupCallback (
|
||||
void * param,
|
||||
const wchar_t name[],
|
||||
const wchar_t name[],
|
||||
unsigned addrCount,
|
||||
const NetAddress addrs[]
|
||||
const plNetAddress addrs[]
|
||||
) {
|
||||
if (!addrCount) {
|
||||
ReportNetError(kNetProtocolCli2Auth, kNetErrNameLookupFailed);
|
||||
@ -2753,13 +2753,16 @@ bool AgeRequestTrans::Send () {
|
||||
|
||||
//============================================================================
|
||||
void AgeRequestTrans::Post () {
|
||||
plNetAddress addr;
|
||||
addr.SetHost(m_gameSrvNode);
|
||||
|
||||
m_callback(
|
||||
m_result,
|
||||
m_param,
|
||||
m_ageMcpId,
|
||||
m_ageVaultId,
|
||||
m_ageInstId,
|
||||
m_gameSrvNode
|
||||
addr
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -50,6 +50,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#endif
|
||||
#define PLASMA20_SOURCES_PLASMA_PUBUTILLIB_PLNETGAMELIB_PRIVATE_PLNGLAUTH_H
|
||||
|
||||
#include "pnNetCommon/plNetAddress.h"
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
@ -326,7 +327,7 @@ typedef void (*FNetCliAuthAgeRequestCallback)(
|
||||
unsigned ageMcpId,
|
||||
unsigned ageVaultId,
|
||||
const Uuid & ageInstId,
|
||||
NetAddressNode gameAddr
|
||||
plNetAddress gameAddr
|
||||
);
|
||||
void NetCliAuthAgeRequest (
|
||||
const wchar_t ageName[], // L"Teledahn"
|
||||
|
Reference in New Issue
Block a user