Files
SatyandClaude Opus 5.5 c790ecb4a0 Port Streaming/Storage/Transport/HTTP, Mopaq write path and missing-function batches
- Streaming: StreamingManager, Manifests, Storage (.part files, write queue),
  Transport (HTTP split download, throttle), Tracker/StartupReport, streaming
  filestack verbs (s_streamstack, StreamingOpen), RepairCache static
- URL: HttpRequest, InternetCallback, ReadResponseData, DownloadURL
- Mopaq write path: SFileCreateArchive/CreateFile/WriteFile, IOMpqWriteUnit,
  WriteArchiveChanges, RebuildHashTable, listfile acquire/release;
  SComp::Compress with RLE/zlib/bzip2/pkware compressors; MPQEncrypt::Encrypt
- LaunchChildProcessWithArguments, Debug::DefaultCallback/Breakpoint
- Earlier batches: ComSat, Battlenet Tumor, Glue/Ui/WowServices fixes,
  luaL_error returns in Script_ files

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-03 16:51:23 +02:00

38 lines
963 B
C++

#if defined(WOWDECOMP_ARCH_32)
#include <winsock2.h>
#include <cstdlib>
#include <cstring>
#include "Engine/Source/ComSat/ComSatNetwork.h"
// VERIFY: 4d04cc78 auto
// OFFSET: 0x00885C40
void ComSat::Network::Address::SetPort(int32_t port) {
this->m_port = htons(static_cast<u_short>(port));
}
// VERIFY: f308d459 auto
// OFFSET: 0x00885C60
int32_t ComSat::Network::Address::GetPort() const {
return ntohs(this->m_port);
}
// VERIFY: 18ffc29e manual
// OFFSET: 0x00885CD0
void ComSat::Network::Address::SetAddress(const char* address) {
const char* colon = strchr(address, ':');
if (colon) {
if (strlen(address) < 128) {
char host[128];
strcpy(host, address);
host[colon - address] = '\0';
this->m_ip = inet_addr(host);
this->m_port = htons(static_cast<u_short>(strtol(colon + 1, nullptr, 10)));
}
} else {
this->m_ip = inet_addr(address);
}
}
#endif