1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-15 22:56:30 +09:00

Added missing readonly properties to NetConnectionStatistics for sent/received/dropped message counts.

This commit is contained in:
Joshjje
2015-07-05 19:22:18 -04:00
parent 387f786950
commit bbd026e459

View File

@@ -93,11 +93,26 @@ namespace Lidgren.Network
/// </summary>
public long ReceivedBytes { get { return m_receivedBytes; } }
/// <summary>
/// Gets the number of sent messages for this connection
/// </summary>
public long SentMessages { get { return m_sentMessages; } }
/// <summary>
/// Gets the number of received messages for this connection
/// </summary>
public long ReceivedMessages { get { return m_receivedMessages; } }
/// <summary>
/// Gets the number of resent reliable messages for this connection
/// </summary>
public long ResentMessages { get { return m_resentMessagesDueToHole + m_resentMessagesDueToDelay; } }
/// <summary>
/// Gets the number of dropped messages for this connection
/// </summary>
public long DroppedMessages { get { return m_droppedMessages; } }
// public double LastSendRespondedTo { get { return m_connection.m_lastSendRespondedTo; } }
#if !USE_RELEASE_STATISTICS