Network/ENetHost: Add GetServiceTime()
This commit is contained in:
@@ -53,6 +53,8 @@ namespace Nz
|
||||
|
||||
void Flush();
|
||||
|
||||
inline UInt32 GetServiceTime() const;
|
||||
|
||||
int Service(ENetEvent* event, UInt32 timeout);
|
||||
|
||||
void SimulateNetwork(double packetLossProbability, UInt16 minDelay, UInt16 maxDelay);
|
||||
|
||||
@@ -51,6 +51,11 @@ namespace Nz
|
||||
m_peers.clear();
|
||||
m_socket.Close();
|
||||
}
|
||||
|
||||
inline UInt32 Nz::ENetHost::GetServiceTime() const
|
||||
{
|
||||
return m_serviceTime;
|
||||
}
|
||||
}
|
||||
|
||||
#include <Nazara/Network/DebugOff.hpp>
|
||||
|
||||
Reference in New Issue
Block a user