Fix recv return type and better download error handling

This commit is contained in:
Tixx
2025-03-28 23:47:59 +01:00
parent ad7177bec8
commit 472e2d16b6
4 changed files with 12 additions and 6 deletions

View File

@@ -262,7 +262,8 @@ void TCPGameServer(const std::string& IP, int Port) {
NetMainThread = std::make_unique<std::thread>(NetMain, IP, Port);
CServer = false;
}
int32_t Size, Temp, Rcv;
int32_t Size, Rcv;
int Temp;
char Header[10] = { 0 };
// Read byte by byte until '>' is rcved then get the size and read based on it