diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs index 46a3261..b4044b5 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs | |||
@@ -78,6 +78,11 @@ namespace OpenMetaverse | |||
78 | public bool IsRunningOutbound { get; private set; } | 78 | public bool IsRunningOutbound { get; private set; } |
79 | 79 | ||
80 | /// <summary> | 80 | /// <summary> |
81 | /// Number of UDP receives. | ||
82 | /// </summary> | ||
83 | public int UdpReceives { get; private set; } | ||
84 | |||
85 | /// <summary> | ||
81 | /// Number of receives over which to establish a receive time average. | 86 | /// Number of receives over which to establish a receive time average. |
82 | /// </summary> | 87 | /// </summary> |
83 | private readonly static int s_receiveTimeSamples = 500; | 88 | private readonly static int s_receiveTimeSamples = 500; |
@@ -295,6 +300,8 @@ namespace OpenMetaverse | |||
295 | // to AsyncBeginReceive | 300 | // to AsyncBeginReceive |
296 | if (IsRunningInbound) | 301 | if (IsRunningInbound) |
297 | { | 302 | { |
303 | UdpReceives++; | ||
304 | |||
298 | // Asynchronous mode will start another receive before the | 305 | // Asynchronous mode will start another receive before the |
299 | // callback for this packet is even fired. Very parallel :-) | 306 | // callback for this packet is even fired. Very parallel :-) |
300 | if (m_asyncPacketHandling) | 307 | if (m_asyncPacketHandling) |
@@ -345,7 +352,6 @@ namespace OpenMetaverse | |||
345 | if (!m_asyncPacketHandling) | 352 | if (!m_asyncPacketHandling) |
346 | AsyncBeginReceive(); | 353 | AsyncBeginReceive(); |
347 | } | 354 | } |
348 | |||
349 | } | 355 | } |
350 | } | 356 | } |
351 | 357 | ||