From 1ba51dd2fdd658947cc94af2d788f0cc4da03a3f Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sat, 10 May 2008 13:11:09 +0000 Subject: * 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') --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs') 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 kupack.TargetBlock.TargetPort = (ushort)0; kupack.UserInfo.Reason = Helpers.StringToField(message); OutPacket(kupack, ThrottleOutPacketType.Task); + // You must sleep here or users get no message! + Thread.Sleep(500); } } @@ -2244,6 +2246,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP im.Header.Zerocoded = true; OutPacket(im, ThrottleOutPacketType.Texture); } + public void SendShutdownConnectionNotice() + { + OutPacket(PacketPool.Instance.GetPacket(PacketType.DisableSimulator), ThrottleOutPacketType.Unknown); + } + + public void SendSimStats(Packet pack) + { + pack.Header.Reliable = false; + OutPacket(pack, ThrottleOutPacketType.Task); + } + #endregion #region Estate Data Sending Methods -- cgit v1.1