aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-03-03 17:50:05 +0000
committerJustin Clark-Casey (justincc)2010-06-08 16:10:40 +0100
commit052445806911288b49c36065575556559fe4963e (patch)
tree6eae06de589ffa3bbf90c4ba33a371ae399d4f36 /OpenSim/Region/ClientStack/LindenUDP
parentMerge branch '0.6.9-post-fixes' into share-with-group (diff)
downloadopensim-SC-052445806911288b49c36065575556559fe4963e.zip
opensim-SC-052445806911288b49c36065575556559fe4963e.tar.gz
opensim-SC-052445806911288b49c36065575556559fe4963e.tar.bz2
opensim-SC-052445806911288b49c36065575556559fe4963e.tar.xz
remove references to OpenSim.Framework.Commuications.Tests.dll since all relevant test code has been obsoleted
this allows the tests to pass on my local system
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs16
1 files changed, 13 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index ec238ef..58aa26a 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -98,6 +98,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
98 /// </summary> 98 /// </summary>
99 public class LLClientView : IClientAPI, IClientCore, IClientIM, IClientChat, IClientIPEndpoint, IStatsCollector 99 public class LLClientView : IClientAPI, IClientCore, IClientIM, IClientChat, IClientIPEndpoint, IStatsCollector
100 { 100 {
101 /// <value>
102 /// Debug packet level. At the moment, only 255 does anything (prints out all in and out packets).
103 /// </value>
104 protected int m_debugPacketLevel = 0;
105
101 #region Events 106 #region Events
102 107
103 public event GenericMessage OnGenericMessage; 108 public event GenericMessage OnGenericMessage;
@@ -490,6 +495,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
490 495
491 public void SetDebugPacketLevel(int newDebug) 496 public void SetDebugPacketLevel(int newDebug)
492 { 497 {
498 m_debugPacketLevel = newDebug;
493 } 499 }
494 500
495 #region Client Methods 501 #region Client Methods
@@ -11080,7 +11086,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
11080 LLUDPServer.LogPacketHeader(false, m_circuitCode, 0, packet.Type, (ushort)packet.Length); 11086 LLUDPServer.LogPacketHeader(false, m_circuitCode, 0, packet.Type, (ushort)packet.Length);
11081 #endregion BinaryStats 11087 #endregion BinaryStats
11082 11088
11083 m_udpServer.SendPacket(m_udpClient, packet, throttlePacketType, true); 11089 OutPacket(packet, throttlePacketType, true);
11084 } 11090 }
11085 11091
11086 /// <summary> 11092 /// <summary>
@@ -11093,6 +11099,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
11093 /// handles splitting manually</param> 11099 /// handles splitting manually</param>
11094 protected void OutPacket(Packet packet, ThrottleOutPacketType throttlePacketType, bool doAutomaticSplitting) 11100 protected void OutPacket(Packet packet, ThrottleOutPacketType throttlePacketType, bool doAutomaticSplitting)
11095 { 11101 {
11102 if (m_debugPacketLevel >= 255)
11103 m_log.DebugFormat("[CLIENT]: Packet OUT {0}", packet.Type);
11104
11096 m_udpServer.SendPacket(m_udpClient, packet, throttlePacketType, doAutomaticSplitting); 11105 m_udpServer.SendPacket(m_udpClient, packet, throttlePacketType, doAutomaticSplitting);
11097 } 11106 }
11098 11107
@@ -11164,10 +11173,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
11164 /// <param name="Pack">OpenMetaverse.packet</param> 11173 /// <param name="Pack">OpenMetaverse.packet</param>
11165 public void ProcessInPacket(Packet Pack) 11174 public void ProcessInPacket(Packet Pack)
11166 { 11175 {
11167// m_log.DebugFormat("[CLIENT]: Packet IN {0}", Pack); 11176 if (m_debugPacketLevel >= 255)
11177 m_log.DebugFormat("[CLIENT]: Packet IN {0}", Pack.Type);
11168 11178
11169 if (!ProcessPacketMethod(Pack)) 11179 if (!ProcessPacketMethod(Pack))
11170 m_log.Warn("[CLIENT]: unhandled packet " + Pack); 11180 m_log.Warn("[CLIENT]: unhandled packet " + Pack.Type);
11171 11181
11172 PacketPool.Instance.ReturnPacket(Pack); 11182 PacketPool.Instance.ReturnPacket(Pack);
11173 } 11183 }