2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00

Start killing off NetAddress.

This commit is contained in:
Darryl Pogue
2012-03-11 23:12:03 -07:00
parent 7bd51c923f
commit 72d92bc66e
10 changed files with 38 additions and 87 deletions

View File

@ -2194,18 +2194,11 @@ static bool Recv_ServerAddr (
{
if (s_active) {
s_active->token = msg.token;
NetAddressFromNode(
msg.srvAddr,
NetAddressGetPort(s_active->addr),
&s_active->addr
);
wchar_t addrStr[64];
NetAddressNodeToString(
msg.srvAddr,
addrStr,
arrsize(addrStr)
);
LogMsg(kLogPerf, L"SrvAuth addr: %s", addrStr);
s_active->addr.SetHost(msg.srvAddr);
plString logmsg = _TEMP_CONVERT_FROM_LITERAL("SrvAuth addr: ");
logmsg += s_active->addr.GetHostString();
LogMsg(kLogPerf, L"SrvAuth addr: %s", logmsg.c_str());
}
}
s_critsect.Leave();

View File

@ -798,8 +798,7 @@ void GamePingEnable (bool enable) {
void NetCliGameStartConnect (
const NetAddressNode & node
) {
NetAddress addr;
NetAddressFromNode(node, kNetDefaultClientPort, &addr);
plNetAddress addr(node, kNetDefaultClientPort);
Connect(addr);
}