aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP/ILLPacketHandler.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-01-12 18:45:03 +0000
committerJustin Clarke Casey2009-01-12 18:45:03 +0000
commitd4d2c1959481d6d5e04a646c0b34f954b1bc727d (patch)
tree1fc9425201a226b77805a4709200f5ded14738e4 /OpenSim/Region/ClientStack/LindenUDP/ILLPacketHandler.cs
parent* Apply http://opensimulator.org/mantis/view.php?id=2913 (diff)
downloadopensim-SC-d4d2c1959481d6d5e04a646c0b34f954b1bc727d.zip
opensim-SC-d4d2c1959481d6d5e04a646c0b34f954b1bc727d.tar.gz
opensim-SC-d4d2c1959481d6d5e04a646c0b34f954b1bc727d.tar.bz2
opensim-SC-d4d2c1959481d6d5e04a646c0b34f954b1bc727d.tar.xz
* Extend PacketHandlerTest to fire in a packet.
* Can't test result yet since the Client thread handles it with unpredictable timing
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/ILLPacketHandler.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/ILLPacketHandler.cs b/OpenSim/Region/ClientStack/LindenUDP/ILLPacketHandler.cs
index b857163..6c26784 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/ILLPacketHandler.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/ILLPacketHandler.cs
@@ -36,6 +36,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
36 public delegate void PacketDrop(Packet pack, Object id); 36 public delegate void PacketDrop(Packet pack, Object id);
37 public delegate bool SynchronizeClientHandler(IScene scene, Packet packet, UUID agentID, ThrottleOutPacketType throttlePacketType); 37 public delegate bool SynchronizeClientHandler(IScene scene, Packet packet, UUID agentID, ThrottleOutPacketType throttlePacketType);
38 38
39 /// <summary>
40 /// Interface to a class that handles all the activity involved with maintaining the client circuit (handling acks,
41 /// resends, pings, etc.)
42 /// </summary>
39 public interface ILLPacketHandler 43 public interface ILLPacketHandler
40 { 44 {
41 event PacketStats OnPacketStats; 45 event PacketStats OnPacketStats;
@@ -48,8 +52,18 @@ namespace OpenSim.Region.ClientStack.LindenUDP
48 bool ReliableIsImportant { get; set; } 52 bool ReliableIsImportant { get; set; }
49 int MaxReliableResends { get; set; } 53 int MaxReliableResends { get; set; }
50 54
55 /// <summary>
56 /// Initial handling of a received packet. It will be processed later in ProcessInPacket()
57 /// </summary>
58 /// <param name="packet"></param>
51 void InPacket(Packet packet); 59 void InPacket(Packet packet);
60
61 /// <summary>
62 /// Take action depending on the type and contents of an received packet.
63 /// </summary>
64 /// <param name="item"></param>
52 void ProcessInPacket(LLQueItem item); 65 void ProcessInPacket(LLQueItem item);
66
53 void ProcessOutPacket(LLQueItem item); 67 void ProcessOutPacket(LLQueItem item);
54 void OutPacket(Packet NewPack, 68 void OutPacket(Packet NewPack,
55 ThrottleOutPacketType throttlePacketType); 69 ThrottleOutPacketType throttlePacketType);