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

@@ -58,6 +58,7 @@ namespace Nz
inline ENetPeerState GetState() const;
inline UInt64 GetTotalByteReceived() const;
inline UInt64 GetTotalByteSent() const;
inline UInt64 GetTotalPacketReceived() const;
inline UInt64 GetTotalPacketLost() const;
inline UInt64 GetTotalPacketSent() const;
@@ -241,6 +242,7 @@ namespace Nz
UInt32 m_windowSize;
UInt64 m_totalByteReceived;
UInt64 m_totalByteSent;
UInt64 m_totalPacketReceived;
UInt64 m_totalPacketLost;
UInt64 m_totalPacketSent;
bool m_isSimulationEnabled;

View File

@@ -72,6 +72,11 @@ namespace Nz
return m_totalByteSent;
}
inline UInt64 ENetPeer::GetTotalPacketReceived() const
{
return m_totalPacketReceived;
}
inline UInt64 ENetPeer::GetTotalPacketLost() const
{
return m_totalPacketLost;