diff options
author | Melanie Thielker | 2009-05-02 17:31:49 +0000 |
---|---|---|
committer | Melanie Thielker | 2009-05-02 17:31:49 +0000 |
commit | 66e25abbfed3c641f1114d2d0525831eeb566f89 (patch) | |
tree | 1f1b045e4ef266436b27cdcd6573f5d4f7ca7e6c /OpenSim/Region/ClientStack/LindenUDP | |
parent | Thank you kindly, Fly-Man, for a patch that: (diff) | |
download | opensim-SC_OLD-66e25abbfed3c641f1114d2d0525831eeb566f89.zip opensim-SC_OLD-66e25abbfed3c641f1114d2d0525831eeb566f89.tar.gz opensim-SC_OLD-66e25abbfed3c641f1114d2d0525831eeb566f89.tar.bz2 opensim-SC_OLD-66e25abbfed3c641f1114d2d0525831eeb566f89.tar.xz |
Plumb conifg into the client views. Add config option to configure packet
dropping.
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 12 |
1 files changed, 12 insertions, 0 deletions
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; | |||
44 | using OpenSim.Region.Framework.Interfaces; | 44 | using OpenSim.Region.Framework.Interfaces; |
45 | using OpenSim.Region.Framework.Scenes; | 45 | using OpenSim.Region.Framework.Scenes; |
46 | using Timer=System.Timers.Timer; | 46 | using Timer=System.Timers.Timer; |
47 | using Nini.Config; | ||
47 | 48 | ||
48 | namespace OpenSim.Region.ClientStack.LindenUDP | 49 | namespace OpenSim.Region.ClientStack.LindenUDP |
49 | { | 50 | { |
@@ -517,6 +518,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
517 | m_PacketHandler.SynchronizeClient = SynchronizeClient; | 518 | m_PacketHandler.SynchronizeClient = SynchronizeClient; |
518 | m_PacketHandler.OnPacketStats += PopulateStats; | 519 | m_PacketHandler.OnPacketStats += PopulateStats; |
519 | 520 | ||
521 | if (scene.Config != null) | ||
522 | { | ||
523 | IConfig clientConfig = scene.Config.Configs["LLClient"]; | ||
524 | if (clientConfig != null) | ||
525 | { | ||
526 | m_PacketHandler.ReliableIsImportant = | ||
527 | clientConfig.GetBoolean("ReliableIsImportant", | ||
528 | false); | ||
529 | } | ||
530 | } | ||
531 | |||
520 | RegisterLocalPacketHandlers(); | 532 | RegisterLocalPacketHandlers(); |
521 | m_imageManager = new LLImageManager(this, m_assetCache,Scene.RequestModuleInterface<IJ2KDecoder>()); | 533 | m_imageManager = new LLImageManager(this, m_assetCache,Scene.RequestModuleInterface<IJ2KDecoder>()); |
522 | } | 534 | } |