From 984e70fd529caead60bc1552bc659f4b6f00aaa8 Mon Sep 17 00:00:00 2001 From: lidgren Date: Wed, 24 Dec 2014 14:34:54 +0000 Subject: [PATCH] connection statistics bytes and packet counters changed from 32 to 64 bit long integers --- Lidgren.Network/NetConnectionStatistics.cs | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Lidgren.Network/NetConnectionStatistics.cs b/Lidgren.Network/NetConnectionStatistics.cs index 9eb9ab30..60da8bda 100644 --- a/Lidgren.Network/NetConnectionStatistics.cs +++ b/Lidgren.Network/NetConnectionStatistics.cs @@ -40,18 +40,18 @@ public sealed class NetConnectionStatistics { private readonly NetConnection m_connection; - internal int m_sentPackets; - internal int m_receivedPackets; + internal long m_sentPackets; + internal long m_receivedPackets; - internal int m_sentMessages; - internal int m_receivedMessages; - internal int m_receivedFragments; + internal long m_sentMessages; + internal long m_receivedMessages; + internal long m_receivedFragments; - internal int m_sentBytes; - internal int m_receivedBytes; + internal long m_sentBytes; + internal long m_receivedBytes; - internal int m_resentMessagesDueToDelay; - internal int m_resentMessagesDueToHole; + internal long m_resentMessagesDueToDelay; + internal long m_resentMessagesDueToHole; internal NetConnectionStatistics(NetConnection conn) { @@ -75,27 +75,27 @@ internal void Reset() /// /// Gets the number of sent packets for this connection /// - public int SentPackets { get { return m_sentPackets; } } + public long SentPackets { get { return m_sentPackets; } } /// /// Gets the number of received packets for this connection /// - public int ReceivedPackets { get { return m_receivedPackets; } } + public long ReceivedPackets { get { return m_receivedPackets; } } /// /// Gets the number of sent bytes for this connection /// - public int SentBytes { get { return m_sentBytes; } } + public long SentBytes { get { return m_sentBytes; } } /// /// Gets the number of received bytes for this connection /// - public int ReceivedBytes { get { return m_receivedBytes; } } + public long ReceivedBytes { get { return m_receivedBytes; } } /// /// Gets the number of resent reliable messages for this connection /// - public int ResentMessages { get { return m_resentMessagesDueToHole + m_resentMessagesDueToDelay; } } + public long ResentMessages { get { return m_resentMessagesDueToHole + m_resentMessagesDueToDelay; } } // public double LastSendRespondedTo { get { return m_connection.m_lastSendRespondedTo; } }