aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
index b4044b5..d0ed7e8 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
@@ -83,6 +83,11 @@ namespace OpenMetaverse
83 public int UdpReceives { get; private set; } 83 public int UdpReceives { get; private set; }
84 84
85 /// <summary> 85 /// <summary>
86 /// Number of UDP sends
87 /// </summary>
88 public int UdpSends { get; private set; }
89
90 /// <summary>
86 /// Number of receives over which to establish a receive time average. 91 /// Number of receives over which to establish a receive time average.
87 /// </summary> 92 /// </summary>
88 private readonly static int s_receiveTimeSamples = 500; 93 private readonly static int s_receiveTimeSamples = 500;
@@ -381,6 +386,8 @@ namespace OpenMetaverse
381 { 386 {
382// UDPPacketBuffer buf = (UDPPacketBuffer)result.AsyncState; 387// UDPPacketBuffer buf = (UDPPacketBuffer)result.AsyncState;
383 m_udpSocket.EndSendTo(result); 388 m_udpSocket.EndSendTo(result);
389
390 UdpSends++;
384 } 391 }
385 catch (SocketException) { } 392 catch (SocketException) { }
386 catch (ObjectDisposedException) { } 393 catch (ObjectDisposedException) { }