diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs index d8ca343..3f2a340 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs | |||
@@ -320,6 +320,33 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
320 | } | 320 | } |
321 | 321 | ||
322 | /// <summary> | 322 | /// <summary> |
323 | /// Get the total number of pakcets queued for this client. | ||
324 | /// </summary> | ||
325 | /// <returns></returns> | ||
326 | public int GetTotalPacketsQueuedCount() | ||
327 | { | ||
328 | int total = 0; | ||
329 | |||
330 | for (int i = 0; i <= (int)ThrottleOutPacketType.Asset; i++) | ||
331 | total += m_packetOutboxes[i].Count; | ||
332 | |||
333 | return total; | ||
334 | } | ||
335 | |||
336 | /// <summary> | ||
337 | /// Get the number of packets queued for the given throttle type. | ||
338 | /// </summary> | ||
339 | /// <returns></returns> | ||
340 | /// <param name="throttleType"></param> | ||
341 | public int GetPacketsQueuedCount(ThrottleOutPacketType throttleType) | ||
342 | { | ||
343 | if ((int)throttleType > 0) | ||
344 | return m_packetOutboxes[(int)throttleType].Count; | ||
345 | else | ||
346 | return 0; | ||
347 | } | ||
348 | |||
349 | /// <summary> | ||
323 | /// Return statistics information about client packet queues. | 350 | /// Return statistics information about client packet queues. |
324 | /// </summary> | 351 | /// </summary> |
325 | /// <remarks> | 352 | /// <remarks> |