Add ENet::GetTotalPacketReceived

This commit is contained in:
Lynix
2019-12-29 11:54:00 +01:00
parent 2dcf154553
commit 24cb8f6845
5 changed files with 12 additions and 0 deletions

View File

@@ -658,6 +658,9 @@ namespace Nz
return commandError();
}
if (peer)
peer->m_totalPacketReceived++;
if (peer && (command->header.command & ENetProtocolFlag_Acknowledge) != 0)
{
UInt16 sentTime;

View File

@@ -165,6 +165,7 @@ namespace Nz
m_eventData = 0;
m_totalByteReceived = 0;
m_totalByteSent = 0;
m_totalPacketReceived = 0;
m_totalPacketLost = 0;
m_totalPacketSent = 0;
m_totalWaitingData = 0;