Network: Add accessors to ENetHost/ENetPeer

This commit is contained in:
Lynix
2018-10-21 13:52:14 +02:00
parent 9674d7373c
commit 4e9d4c10da
5 changed files with 41 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
// This file is part of the "Nazara Engine - Network module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Network/ENetHost.hpp>
#include <utility>
#include <Nazara/Network/Debug.hpp>
@@ -63,6 +64,26 @@ namespace Nz
return m_serviceTime;
}
inline UInt32 ENetHost::GetTotalReceivedPackets() const
{
return m_totalReceivedPackets;
}
inline UInt64 ENetHost::GetTotalReceivedData() const
{
return m_totalReceivedData;
}
inline UInt64 ENetHost::GetTotalSentData() const
{
return m_totalSentData;
}
inline UInt32 ENetHost::GetTotalSentPackets() const
{
return m_totalSentPackets;
}
inline void ENetHost::SetCompressor(std::unique_ptr<ENetCompressor>&& compressor)
{
m_compressor = std::move(compressor);