aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs')
-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 1696037..2c8d88b 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -97,6 +97,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
97 /// </summary> 97 /// </summary>
98 public class LLClientView : IClientAPI, IClientCore, IClientIM, IClientChat, IClientIPEndpoint, IStatsCollector 98 public class LLClientView : IClientAPI, IClientCore, IClientIM, IClientChat, IClientIPEndpoint, IStatsCollector
99 { 99 {
100 /// <value>
101 /// Debug packet level. At the moment, only 255 does anything (prints out all in and out packets).
102 /// </value>
103 protected int m_debugPacketLevel = 0;
104
100 #region Events 105 #region Events
101 106
102 public event GenericMessage OnGenericMessage; 107 public event GenericMessage OnGenericMessage;
@@ -472,6 +477,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
472 477
473 public void SetDebugPacketLevel(int newDebug) 478 public void SetDebugPacketLevel(int newDebug)
474 { 479 {
480 m_debugPacketLevel = newDebug;
475 } 481 }
476 482
477 #region Client Methods 483 #region Client Methods
@@ -10939,7 +10945,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
10939 LLUDPServer.LogPacketHeader(false, m_circuitCode, 0, packet.Type, (ushort)packet.Length); 10945 LLUDPServer.LogPacketHeader(false, m_circuitCode, 0, packet.Type, (ushort)packet.Length);
10940 #endregion BinaryStats 10946 #endregion BinaryStats
10941 10947
10942 m_udpServer.SendPacket(m_udpClient, packet, throttlePacketType, true); 10948 OutPacket(packet, throttlePacketType, true);
10943 } 10949 }
10944 10950
10945 /// <summary> 10951 /// <summary>
@@ -10952,6 +10958,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
10952 /// handles splitting manually</param> 10958 /// handles splitting manually</param>
10953 protected void OutPacket(Packet packet, ThrottleOutPacketType throttlePacketType, bool doAutomaticSplitting) 10959 protected void OutPacket(Packet packet, ThrottleOutPacketType throttlePacketType, bool doAutomaticSplitting)
10954 { 10960 {
10961 if (m_debugPacketLevel >= 255)
10962 m_log.DebugFormat("[CLIENT]: Packet OUT {0}", packet.Type);
10963
10955 m_udpServer.SendPacket(m_udpClient, packet, throttlePacketType, doAutomaticSplitting); 10964 m_udpServer.SendPacket(m_udpClient, packet, throttlePacketType, doAutomaticSplitting);
10956 } 10965 }
10957 10966
@@ -11023,10 +11032,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
11023 /// <param name="Pack">OpenMetaverse.packet</param> 11032 /// <param name="Pack">OpenMetaverse.packet</param>
11024 public void ProcessInPacket(Packet Pack) 11033 public void ProcessInPacket(Packet Pack)
11025 { 11034 {
11026// m_log.DebugFormat("[CLIENT]: Packet IN {0}", Pack); 11035 if (m_debugPacketLevel >= 255)
11036 m_log.DebugFormat("[CLIENT]: Packet IN {0}", Pack.Type);
11027 11037
11028 if (!ProcessPacketMethod(Pack)) 11038 if (!ProcessPacketMethod(Pack))
11029 m_log.Warn("[CLIENT]: unhandled packet " + Pack); 11039 m_log.Warn("[CLIENT]: unhandled packet " + Pack.Type);
11030 11040
11031 PacketPool.Instance.ReturnPacket(Pack); 11041 PacketPool.Instance.ReturnPacket(Pack);
11032 } 11042 }