Nazara/Network: Add GetTotalByte[Received|Sent]
This commit is contained in:
@@ -56,6 +56,8 @@ namespace Nz
|
||||
inline UInt16 GetPeerId() const;
|
||||
inline UInt32 GetRoundTripTime() const;
|
||||
inline ENetPeerState GetState() const;
|
||||
inline UInt64 GetTotalByteReceived() const;
|
||||
inline UInt64 GetTotalByteSent() const;
|
||||
inline UInt64 GetTotalPacketLost() const;
|
||||
inline UInt64 GetTotalPacketSent() const;
|
||||
|
||||
@@ -237,6 +239,8 @@ namespace Nz
|
||||
UInt32 m_timeoutMaximum;
|
||||
UInt32 m_timeoutMinimum;
|
||||
UInt32 m_windowSize;
|
||||
UInt64 m_totalByteReceived;
|
||||
UInt64 m_totalByteSent;
|
||||
UInt64 m_totalPacketLost;
|
||||
UInt64 m_totalPacketSent;
|
||||
bool m_isSimulationEnabled;
|
||||
|
||||
@@ -62,6 +62,16 @@ namespace Nz
|
||||
return m_state;
|
||||
}
|
||||
|
||||
inline UInt64 ENetPeer::GetTotalByteReceived() const
|
||||
{
|
||||
return m_totalByteReceived;
|
||||
}
|
||||
|
||||
inline UInt64 ENetPeer::GetTotalByteSent() const
|
||||
{
|
||||
return m_totalByteSent;
|
||||
}
|
||||
|
||||
inline UInt64 ENetPeer::GetTotalPacketLost() const
|
||||
{
|
||||
return m_totalPacketLost;
|
||||
|
||||
Reference in New Issue
Block a user