Network/ENetPeer: Add GetLastReceiveTime
This commit is contained in:
parent
8b6311de63
commit
b22c93fa5f
|
|
@ -193,6 +193,7 @@ Nazara Engine:
|
||||||
- Added VertexMapper::HasComponentOfType()
|
- Added VertexMapper::HasComponentOfType()
|
||||||
- Fixed SimpleTextDrawer bounds computation
|
- Fixed SimpleTextDrawer bounds computation
|
||||||
- Added LuaState::Load methods which allows to load (compile) lua code to function without executing it.
|
- Added LuaState::Load methods which allows to load (compile) lua code to function without executing it.
|
||||||
|
- Added ENetPeer::GetLastReceiveTime() which gives the last time a reliable packet was received.
|
||||||
|
|
||||||
Nazara Development Kit:
|
Nazara Development Kit:
|
||||||
- ⚠️ Components no longer need to be copyable by assignation
|
- ⚠️ Components no longer need to be copyable by assignation
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,7 @@ namespace Nz
|
||||||
void DisconnectNow(UInt32 data);
|
void DisconnectNow(UInt32 data);
|
||||||
|
|
||||||
inline const IpAddress& GetAddress() const;
|
inline const IpAddress& GetAddress() const;
|
||||||
|
inline UInt32 GetLastReceiveTime() const;
|
||||||
inline UInt32 GetMtu() const;
|
inline UInt32 GetMtu() const;
|
||||||
inline UInt32 GetPacketThrottleAcceleration() const;
|
inline UInt32 GetPacketThrottleAcceleration() const;
|
||||||
inline UInt32 GetPacketThrottleDeceleration() const;
|
inline UInt32 GetPacketThrottleDeceleration() const;
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,11 @@ namespace Nz
|
||||||
return m_address;
|
return m_address;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline UInt32 ENetPeer::GetLastReceiveTime() const
|
||||||
|
{
|
||||||
|
return m_lastReceiveTime;
|
||||||
|
}
|
||||||
|
|
||||||
inline UInt32 ENetPeer::GetMtu() const
|
inline UInt32 ENetPeer::GetMtu() const
|
||||||
{
|
{
|
||||||
return m_mtu;
|
return m_mtu;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue