Network: Add accessors to ENetHost/ENetPeer
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user