Network/ENet: Add compressor support

This commit is contained in:
Jérôme Leclercq
2017-09-22 15:22:43 +02:00
parent 9a665bbff6
commit cc4fdf2476
5 changed files with 94 additions and 6 deletions

View File

@@ -52,16 +52,21 @@ namespace Nz
m_socket.Close();
}
inline Nz::IpAddress ENetHost::GetBoundAddress() const
inline IpAddress ENetHost::GetBoundAddress() const
{
return m_address;
}
inline UInt32 Nz::ENetHost::GetServiceTime() const
inline UInt32 ENetHost::GetServiceTime() const
{
return m_serviceTime;
}
inline void ENetHost::SetCompressor(std::unique_ptr<ENetCompressor>&& compressor)
{
m_compressor = std::move(compressor);
}
inline ENetPacketRef ENetHost::AllocatePacket(ENetPacketFlags flags, NetPacket&& data)
{
ENetPacketRef ref = AllocatePacket(flags);