From 66e25abbfed3c641f1114d2d0525831eeb566f89 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 2 May 2009 17:31:49 +0000 Subject: Plumb conifg into the client views. Add config option to configure packet dropping. --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 12 ++++++++++++ 1 file changed, 12 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 4bc568c..1668bd3 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -44,6 +44,7 @@ using OpenSim.Framework.Statistics; using OpenSim.Region.Framework.Interfaces; using OpenSim.Region.Framework.Scenes; using Timer=System.Timers.Timer; +using Nini.Config; namespace OpenSim.Region.ClientStack.LindenUDP { @@ -517,6 +518,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP m_PacketHandler.SynchronizeClient = SynchronizeClient; m_PacketHandler.OnPacketStats += PopulateStats; + if (scene.Config != null) + { + IConfig clientConfig = scene.Config.Configs["LLClient"]; + if (clientConfig != null) + { + m_PacketHandler.ReliableIsImportant = + clientConfig.GetBoolean("ReliableIsImportant", + false); + } + } + RegisterLocalPacketHandlers(); m_imageManager = new LLImageManager(this, m_assetCache,Scene.RequestModuleInterface()); } -- cgit v1.1