aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs35
1 files changed, 1 insertions, 34 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs
index 29cfd99..7b102ec 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs
@@ -42,40 +42,7 @@ using log4net;
42 42
43namespace OpenSim.Region.ClientStack.LindenUDP 43namespace OpenSim.Region.ClientStack.LindenUDP
44{ 44{
45 public delegate void PacketStats(int inPackets, int outPackets, int unAckedBytes); 45 public class LLPacketHandler : ILLPacketHandler
46 public delegate void PacketDrop(Packet pack, Object id);
47 public delegate bool SynchronizeClientHandler(IScene scene, Packet packet, UUID agentID, ThrottleOutPacketType throttlePacketType);
48
49 public interface IPacketHandler
50 {
51 event PacketStats OnPacketStats;
52 event PacketDrop OnPacketDrop;
53 SynchronizeClientHandler SynchronizeClient { set; }
54
55 int PacketsReceived { get; }
56 int PacketsReceivedReported { get; }
57 uint ResendTimeout { get; set; }
58 bool ReliableIsImportant { get; set; }
59 int MaxReliableResends { get; set; }
60
61 void InPacket(Packet packet);
62 void ProcessInPacket(LLQueItem item);
63 void ProcessOutPacket(LLQueItem item);
64 void OutPacket(Packet NewPack,
65 ThrottleOutPacketType throttlePacketType);
66 void OutPacket(Packet NewPack,
67 ThrottleOutPacketType throttlePacketType, Object id);
68 LLPacketQueue PacketQueue { get; }
69 void Stop();
70 void Flush();
71 void Clear();
72 ClientInfo GetClientInfo();
73 void SetClientInfo(ClientInfo info);
74 void AddImportantPacket(PacketType type);
75 void RemoveImportantPacket(PacketType type);
76 }
77
78 public class LLPacketHandler : IPacketHandler
79 { 46 {
80 //private static readonly ILog m_log 47 //private static readonly ILog m_log
81 // = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 48 // = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);