Add ENet::GetTotalPacketReceived
This commit is contained in:
@@ -658,6 +658,9 @@ namespace Nz
|
||||
return commandError();
|
||||
}
|
||||
|
||||
if (peer)
|
||||
peer->m_totalPacketReceived++;
|
||||
|
||||
if (peer && (command->header.command & ENetProtocolFlag_Acknowledge) != 0)
|
||||
{
|
||||
UInt16 sentTime;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user