You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-18 16:16:35 +09:00
More debug messages
This commit is contained in:
@@ -67,6 +67,8 @@ namespace Lidgren.Network
|
|||||||
pong.Write((byte)pingNumber);
|
pong.Write((byte)pingNumber);
|
||||||
pong.Write(now);
|
pong.Write(now);
|
||||||
|
|
||||||
|
m_owner.LogDebug("Sending pong for remote ping #" + pingNumber);
|
||||||
|
|
||||||
m_owner.SendLibraryImmediately(pong, m_remoteEndpoint);
|
m_owner.SendLibraryImmediately(pong, m_remoteEndpoint);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -138,6 +140,8 @@ namespace Lidgren.Network
|
|||||||
m_lastSentPingNumber++;
|
m_lastSentPingNumber++;
|
||||||
m_lastPingSendTime = now;
|
m_lastPingSendTime = now;
|
||||||
|
|
||||||
|
m_owner.LogDebug("Sending ping #" + m_lastSentPingNumber);
|
||||||
|
|
||||||
// in case of not heard for a while
|
// in case of not heard for a while
|
||||||
if (m_lastSendRespondedTo > 0 && (now > m_lastSendRespondedTo + (m_owner.Configuration.m_pingFrequency * 1.5f)))
|
if (m_lastSendRespondedTo > 0 && (now > m_lastSendRespondedTo + (m_owner.Configuration.m_pingFrequency * 1.5f)))
|
||||||
m_nextPing = now + (m_owner.Configuration.m_pingFrequency * 0.5f); // double ping rate
|
m_nextPing = now + (m_owner.Configuration.m_pingFrequency * 0.5f); // double ping rate
|
||||||
|
|||||||
Reference in New Issue
Block a user