Network/ENet: Move all packet allocation to host

This commit is contained in:
Lynix
2017-02-16 23:26:00 +01:00
parent 8225ad3b41
commit b7ee6d7b29
6 changed files with 37 additions and 29 deletions

View File

@@ -8,6 +8,15 @@
namespace Nz
{
inline ENetPeer::ENetPeer(ENetHost* host, UInt16 peerId) :
m_host(host),
m_incomingSessionID(0xFF),
m_outgoingSessionID(0xFF),
m_incomingPeerID(peerId)
{
Reset();
}
inline const IpAddress& ENetPeer::GetAddress() const
{
return m_address;