From 8c71954e0892958da444ef5c82173262daa3f46c Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 3 Nov 2008 18:33:35 +0000 Subject: * Use nini to pass config information to the client stack, rather than the ClientStackUserSettings class * This conforms better to other module usage --- OpenSim/Region/ClientStack/ClientStackManager.cs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'OpenSim/Region/ClientStack/ClientStackManager.cs') diff --git a/OpenSim/Region/ClientStack/ClientStackManager.cs b/OpenSim/Region/ClientStack/ClientStackManager.cs index 2751e0a..5723739 100644 --- a/OpenSim/Region/ClientStack/ClientStackManager.cs +++ b/OpenSim/Region/ClientStack/ClientStackManager.cs @@ -29,6 +29,7 @@ using System; using System.Net; using System.Reflection; using log4net; +using Nini.Config; using OpenSim.Framework; using OpenSim.Region.ClientStack; using OpenSim.Framework.Communications; @@ -91,26 +92,24 @@ namespace OpenSim.Region.Environment /// /// /// - /// + /// /// Can be null, in which case default values are used /// /// /// /// public IClientNetworkServer CreateServer( - IPAddress _listenIP, ref uint port, int proxyPortOffset, bool allow_alternate_port, ClientStackUserSettings settings, + IPAddress _listenIP, ref uint port, int proxyPortOffset, bool allow_alternate_port, IConfigSource configSource, AssetCache assetCache, AgentCircuitManager authenticateClass) - { - if (null == settings) - settings = new ClientStackUserSettings(); - + { if (plugin != null) { IClientNetworkServer server = - (IClientNetworkServer) Activator.CreateInstance(pluginAssembly.GetType(plugin.ToString())); + (IClientNetworkServer)Activator.CreateInstance(pluginAssembly.GetType(plugin.ToString())); server.Initialise( - _listenIP, ref port, proxyPortOffset, allow_alternate_port, settings, assetCache, authenticateClass); + _listenIP, ref port, proxyPortOffset, allow_alternate_port, + configSource, assetCache, authenticateClass); return server; } -- cgit v1.1