diff --git a/include/Nazara/Network/ENetPeer.hpp b/include/Nazara/Network/ENetPeer.hpp index 7675855d4..812b644cd 100644 --- a/include/Nazara/Network/ENetPeer.hpp +++ b/include/Nazara/Network/ENetPeer.hpp @@ -58,9 +58,9 @@ 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; + inline UInt32 GetTotalPacketReceived() const; + inline UInt32 GetTotalPacketLost() const; + inline UInt32 GetTotalPacketSent() const; inline bool HasPendingCommands(); @@ -239,12 +239,12 @@ namespace Nz UInt32 m_timeoutLimit; UInt32 m_timeoutMaximum; UInt32 m_timeoutMinimum; + UInt32 m_totalPacketReceived; + UInt32 m_totalPacketLost; + UInt32 m_totalPacketSent; UInt32 m_windowSize; UInt64 m_totalByteReceived; UInt64 m_totalByteSent; - UInt64 m_totalPacketReceived; - UInt64 m_totalPacketLost; - UInt64 m_totalPacketSent; bool m_isSimulationEnabled; }; } diff --git a/include/Nazara/Network/ENetPeer.inl b/include/Nazara/Network/ENetPeer.inl index 8b2d0f21a..0d7a96104 100644 --- a/include/Nazara/Network/ENetPeer.inl +++ b/include/Nazara/Network/ENetPeer.inl @@ -72,17 +72,17 @@ namespace Nz return m_totalByteSent; } - inline UInt64 ENetPeer::GetTotalPacketReceived() const + inline UInt32 ENetPeer::GetTotalPacketReceived() const { return m_totalPacketReceived; } - inline UInt64 ENetPeer::GetTotalPacketLost() const + inline UInt32 ENetPeer::GetTotalPacketLost() const { return m_totalPacketLost; } - inline UInt64 ENetPeer::GetTotalPacketSent() const + inline UInt32 ENetPeer::GetTotalPacketSent() const { return m_totalPacketSent; }