diff options
3 files changed, 27 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/ILLPacketHandler.cs b/OpenSim/Region/ClientStack/LindenUDP/ILLPacketHandler.cs index 5658dba..31f9580 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/ILLPacketHandler.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/ILLPacketHandler.cs | |||
@@ -78,5 +78,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
78 | void SetClientInfo(ClientInfo info); | 78 | void SetClientInfo(ClientInfo info); |
79 | void AddImportantPacket(PacketType type); | 79 | void AddImportantPacket(PacketType type); |
80 | void RemoveImportantPacket(PacketType type); | 80 | void RemoveImportantPacket(PacketType type); |
81 | int GetQueueCount(ThrottleOutPacketType queue); | ||
81 | } | 82 | } |
82 | } | 83 | } |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs index 801e0c5..37f6ca7 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs | |||
@@ -863,5 +863,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
863 | m_PacketQueue.Close(); | 863 | m_PacketQueue.Close(); |
864 | Thread.CurrentThread.Abort(); | 864 | Thread.CurrentThread.Abort(); |
865 | } | 865 | } |
866 | |||
867 | public int GetQueueCount(ThrottleOutPacketType queue) | ||
868 | { | ||
869 | return m_PacketQueue.GetQueueCount(queue); | ||
870 | } | ||
866 | } | 871 | } |
867 | } | 872 | } |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs index f08f1b6..d4d654f 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs | |||
@@ -753,5 +753,26 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
753 | { | 753 | { |
754 | get { return throttleMultiplier; } | 754 | get { return throttleMultiplier; } |
755 | } | 755 | } |
756 | |||
757 | public int GetQueueCount(ThrottleOutPacketType queue) | ||
758 | { | ||
759 | switch (queue) | ||
760 | { | ||
761 | case ThrottleOutPacketType.Land: | ||
762 | return LandOutgoingPacketQueue.Count; | ||
763 | case ThrottleOutPacketType.Wind: | ||
764 | return WindOutgoingPacketQueue.Count; | ||
765 | case ThrottleOutPacketType.Cloud: | ||
766 | return CloudOutgoingPacketQueue.Count; | ||
767 | case ThrottleOutPacketType.Task: | ||
768 | return TaskOutgoingPacketQueue.Count; | ||
769 | case ThrottleOutPacketType.Texture: | ||
770 | return TextureOutgoingPacketQueue.Count; | ||
771 | case ThrottleOutPacketType.Asset: | ||
772 | return AssetOutgoingPacketQueue.Count; | ||
773 | } | ||
774 | |||
775 | return 0; | ||
776 | } | ||
756 | } | 777 | } |
757 | } | 778 | } |