Add clientstack.OutgoingUDPSendsCount stat to show number of outbound UDP packets sent by a region per second

This commit is contained in:
Justin Clark-Casey (justincc)
2013-07-23 00:15:58 +01:00
parent 8396f1bd42
commit 60732c96ef
2 changed files with 22 additions and 3 deletions

View File

@@ -82,6 +82,11 @@ namespace OpenMetaverse
/// </summary>
public int UdpReceives { get; private set; }
/// <summary>
/// Number of UDP sends
/// </summary>
public int UdpSends { get; private set; }
/// <summary>
/// Number of receives over which to establish a receive time average.
/// </summary>
@@ -381,6 +386,8 @@ namespace OpenMetaverse
{
// UDPPacketBuffer buf = (UDPPacketBuffer)result.AsyncState;
m_udpSocket.EndSendTo(result);
UdpSends++;
}
catch (SocketException) { }
catch (ObjectDisposedException) { }