1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 20:43:04 +01:00
This commit is contained in:
Yaroslav Tretyakov
2016-06-09 16:04:02 -06:00
committed by Ted John
parent 1761907f57
commit 379b85f94c
3 changed files with 11 additions and 10 deletions

View File

@@ -339,7 +339,7 @@ public:
}
}
bool SendData(const void * buffer, size_t size) override
size_t SendData(const void * buffer, size_t size) override
{
if (_status != SOCKET_STATUS_CONNECTED)
{
@@ -354,11 +354,11 @@ public:
int sentBytes = send(_socket, (const char *)bufferStart, (int)remainingSize, FLAG_NO_PIPE);
if (sentBytes == SOCKET_ERROR)
{
return false;
return totalSent;
}
totalSent += sentBytes;
} while (totalSent < size);
return true;
return totalSent;
}
NETWORK_READPACKET ReceiveData(void * buffer, size_t size, size_t * sizeReceived) override