aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP
diff options
context:
space:
mode:
authorTeravus Ovares2008-05-10 13:11:09 +0000
committerTeravus Ovares2008-05-10 13:11:09 +0000
commit1ba51dd2fdd658947cc94af2d788f0cc4da03a3f (patch)
tree80a7d6cdedebc5ba6ec07cdbe997e686d32a90ff /OpenSim/Region/ClientStack/LindenUDP
parent* Two more OutPacket refactors. TextureSender. (diff)
downloadopensim-SC_OLD-1ba51dd2fdd658947cc94af2d788f0cc4da03a3f.zip
opensim-SC_OLD-1ba51dd2fdd658947cc94af2d788f0cc4da03a3f.tar.gz
opensim-SC_OLD-1ba51dd2fdd658947cc94af2d788f0cc4da03a3f.tar.bz2
opensim-SC_OLD-1ba51dd2fdd658947cc94af2d788f0cc4da03a3f.tar.xz
* More OutPacket refactors.
* Added back a sleep to the kick routine so users get a 'you have been logged off message' when they get kicked from the simulator for various reasons (like 'the simulator is going down')
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index 8721356..aff43d5 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -436,6 +436,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
436 kupack.TargetBlock.TargetPort = (ushort)0; 436 kupack.TargetBlock.TargetPort = (ushort)0;
437 kupack.UserInfo.Reason = Helpers.StringToField(message); 437 kupack.UserInfo.Reason = Helpers.StringToField(message);
438 OutPacket(kupack, ThrottleOutPacketType.Task); 438 OutPacket(kupack, ThrottleOutPacketType.Task);
439 // You must sleep here or users get no message!
440 Thread.Sleep(500);
439 } 441 }
440 } 442 }
441 443
@@ -2244,6 +2246,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
2244 im.Header.Zerocoded = true; 2246 im.Header.Zerocoded = true;
2245 OutPacket(im, ThrottleOutPacketType.Texture); 2247 OutPacket(im, ThrottleOutPacketType.Texture);
2246 } 2248 }
2249 public void SendShutdownConnectionNotice()
2250 {
2251 OutPacket(PacketPool.Instance.GetPacket(PacketType.DisableSimulator), ThrottleOutPacketType.Unknown);
2252 }
2253
2254 public void SendSimStats(Packet pack)
2255 {
2256 pack.Header.Reliable = false;
2257 OutPacket(pack, ThrottleOutPacketType.Task);
2258 }
2259
2247 #endregion 2260 #endregion
2248 2261
2249 #region Estate Data Sending Methods 2262 #region Estate Data Sending Methods