From bbd026e45970ada2141d9492ac03e845530e576e Mon Sep 17 00:00:00 2001 From: Joshjje Date: Sun, 5 Jul 2015 19:22:18 -0400 Subject: [PATCH] Added missing readonly properties to NetConnectionStatistics for sent/received/dropped message counts. --- Lidgren.Network/NetConnectionStatistics.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Lidgren.Network/NetConnectionStatistics.cs b/Lidgren.Network/NetConnectionStatistics.cs index d993d06..1affbc2 100644 --- a/Lidgren.Network/NetConnectionStatistics.cs +++ b/Lidgren.Network/NetConnectionStatistics.cs @@ -93,11 +93,26 @@ namespace Lidgren.Network /// public long ReceivedBytes { get { return m_receivedBytes; } } + /// + /// Gets the number of sent messages for this connection + /// + public long SentMessages { get { return m_sentMessages; } } + + /// + /// Gets the number of received messages for this connection + /// + public long ReceivedMessages { get { return m_receivedMessages; } } + /// /// Gets the number of resent reliable messages for this connection /// public long ResentMessages { get { return m_resentMessagesDueToHole + m_resentMessagesDueToDelay; } } + /// + /// Gets the number of dropped messages for this connection + /// + public long DroppedMessages { get { return m_droppedMessages; } } + // public double LastSendRespondedTo { get { return m_connection.m_lastSendRespondedTo; } } #if !USE_RELEASE_STATISTICS