aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/ClientView.PacketQueue.cs
diff options
context:
space:
mode:
authorTeravus Ovares2007-11-18 15:54:05 +0000
committerTeravus Ovares2007-11-18 15:54:05 +0000
commit615b40b68b2311433b855f8c1e961a8b71eb9b65 (patch)
treece9620d6f9e59e5e841f9746d738f6a71063eae4 /OpenSim/Region/ClientStack/ClientView.PacketQueue.cs
parentcleaned up some mono compiler warnings (diff)
downloadopensim-SC-615b40b68b2311433b855f8c1e961a8b71eb9b65.zip
opensim-SC-615b40b68b2311433b855f8c1e961a8b71eb9b65.tar.gz
opensim-SC-615b40b68b2311433b855f8c1e961a8b71eb9b65.tar.bz2
opensim-SC-615b40b68b2311433b855f8c1e961a8b71eb9b65.tar.xz
* Refactored IClientAPI.OutPacket to require a second mandatory parameter. This parameter has an enum:int ThrottleOutPacketType and contains types; Resend, Land, Wind, Cloud, Task, Texture, and Asset.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.PacketQueue.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.PacketQueue.cs b/OpenSim/Region/ClientStack/ClientView.PacketQueue.cs
index dc7952e..179d02a 100644
--- a/OpenSim/Region/ClientStack/ClientView.PacketQueue.cs
+++ b/OpenSim/Region/ClientStack/ClientView.PacketQueue.cs
@@ -197,7 +197,7 @@ namespace OpenSim.Region.ClientStack
197 StartPingCheckPacket startPing = (StartPingCheckPacket) NewPack; 197 StartPingCheckPacket startPing = (StartPingCheckPacket) NewPack;
198 CompletePingCheckPacket endPing = new CompletePingCheckPacket(); 198 CompletePingCheckPacket endPing = new CompletePingCheckPacket();
199 endPing.PingID.PingID = startPing.PingID.PingID; 199 endPing.PingID.PingID = startPing.PingID.PingID;
200 OutPacket(endPing); 200 OutPacket(endPing, ThrottleOutPacketType.Task);
201 } 201 }
202 else 202 else
203 { 203 {
@@ -208,7 +208,7 @@ namespace OpenSim.Region.ClientStack
208 } 208 }
209 } 209 }
210 210
211 public virtual void OutPacket(Packet NewPack) 211 public virtual void OutPacket(Packet NewPack, ThrottleOutPacketType throttlePacketType)
212 { 212 {
213 QueItem item = new QueItem(); 213 QueItem item = new QueItem();
214 item.Packet = NewPack; 214 item.Packet = NewPack;
@@ -228,7 +228,7 @@ namespace OpenSim.Region.ClientStack
228 ack_it.Packets[0].ID = Pack.Header.Sequence; 228 ack_it.Packets[0].ID = Pack.Header.Sequence;
229 ack_it.Header.Reliable = false; 229 ack_it.Header.Reliable = false;
230 230
231 OutPacket(ack_it); 231 OutPacket(ack_it, ThrottleOutPacketType.Task);
232 } 232 }
233 /* 233 /*
234 if (Pack.Header.Reliable) 234 if (Pack.Header.Reliable)
@@ -255,7 +255,7 @@ namespace OpenSim.Region.ClientStack
255 (now - packet.TickCount) + "ms have passed"); 255 (now - packet.TickCount) + "ms have passed");
256 256
257 packet.Header.Resent = true; 257 packet.Header.Resent = true;
258 OutPacket(packet); 258 OutPacket(packet, ThrottleOutPacketType.Resend);
259 } 259 }
260 } 260 }
261 } 261 }
@@ -289,7 +289,7 @@ namespace OpenSim.Region.ClientStack
289 } 289 }
290 290
291 acks.Header.Reliable = false; 291 acks.Header.Reliable = false;
292 OutPacket(acks); 292 OutPacket(acks, ThrottleOutPacketType.Task);
293 293
294 PendingAcks.Clear(); 294 PendingAcks.Clear();
295 } 295 }