Network/ENetPeer: Add GetLastReceiveTime

This commit is contained in:
Lynix
2018-05-13 14:44:09 +02:00
parent 8b6311de63
commit b22c93fa5f
3 changed files with 7 additions and 0 deletions

View File

@@ -47,6 +47,7 @@ namespace Nz
void DisconnectNow(UInt32 data);
inline const IpAddress& GetAddress() const;
inline UInt32 GetLastReceiveTime() const;
inline UInt32 GetMtu() const;
inline UInt32 GetPacketThrottleAcceleration() const;
inline UInt32 GetPacketThrottleDeceleration() const;

View File

@@ -22,6 +22,11 @@ namespace Nz
return m_address;
}
inline UInt32 ENetPeer::GetLastReceiveTime() const
{
return m_lastReceiveTime;
}
inline UInt32 ENetPeer::GetMtu() const
{
return m_mtu;