aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/ClientStackManager.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-11-03 18:33:35 +0000
committerJustin Clarke Casey2008-11-03 18:33:35 +0000
commit8c71954e0892958da444ef5c82173262daa3f46c (patch)
tree6e06070ae11dbfd6a84b1ae7995e6df6275f892e /OpenSim/Region/ClientStack/ClientStackManager.cs
parentcompleting move to refactored multi-channel capable IRCBridgeModule (diff)
downloadopensim-SC_OLD-8c71954e0892958da444ef5c82173262daa3f46c.zip
opensim-SC_OLD-8c71954e0892958da444ef5c82173262daa3f46c.tar.gz
opensim-SC_OLD-8c71954e0892958da444ef5c82173262daa3f46c.tar.bz2
opensim-SC_OLD-8c71954e0892958da444ef5c82173262daa3f46c.tar.xz
* Use nini to pass config information to the client stack, rather than the ClientStackUserSettings class
* This conforms better to other module usage
Diffstat (limited to 'OpenSim/Region/ClientStack/ClientStackManager.cs')
-rw-r--r--OpenSim/Region/ClientStack/ClientStackManager.cs15
1 files changed, 7 insertions, 8 deletions
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;
29using System.Net; 29using System.Net;
30using System.Reflection; 30using System.Reflection;
31using log4net; 31using log4net;
32using Nini.Config;
32using OpenSim.Framework; 33using OpenSim.Framework;
33using OpenSim.Region.ClientStack; 34using OpenSim.Region.ClientStack;
34using OpenSim.Framework.Communications; 35using OpenSim.Framework.Communications;
@@ -91,26 +92,24 @@ namespace OpenSim.Region.Environment
91 /// <param name="port"></param> 92 /// <param name="port"></param>
92 /// <param name="proxyPortOffset"></param> 93 /// <param name="proxyPortOffset"></param>
93 /// <param name="allow_alternate_port"></param> 94 /// <param name="allow_alternate_port"></param>
94 /// <param name="settings"> 95 /// <param name="configSource">
95 /// Can be null, in which case default values are used 96 /// Can be null, in which case default values are used
96 /// </param> 97 /// </param>
97 /// <param name="assetCache"></param> 98 /// <param name="assetCache"></param>
98 /// <param name="authenticateClass"></param> 99 /// <param name="authenticateClass"></param>
99 /// <returns></returns> 100 /// <returns></returns>
100 public IClientNetworkServer CreateServer( 101 public IClientNetworkServer CreateServer(
101 IPAddress _listenIP, ref uint port, int proxyPortOffset, bool allow_alternate_port, ClientStackUserSettings settings, 102 IPAddress _listenIP, ref uint port, int proxyPortOffset, bool allow_alternate_port, IConfigSource configSource,
102 AssetCache assetCache, AgentCircuitManager authenticateClass) 103 AssetCache assetCache, AgentCircuitManager authenticateClass)
103 { 104 {
104 if (null == settings)
105 settings = new ClientStackUserSettings();
106
107 if (plugin != null) 105 if (plugin != null)
108 { 106 {
109 IClientNetworkServer server = 107 IClientNetworkServer server =
110 (IClientNetworkServer) Activator.CreateInstance(pluginAssembly.GetType(plugin.ToString())); 108 (IClientNetworkServer)Activator.CreateInstance(pluginAssembly.GetType(plugin.ToString()));
111 109
112 server.Initialise( 110 server.Initialise(
113 _listenIP, ref port, proxyPortOffset, allow_alternate_port, settings, assetCache, authenticateClass); 111 _listenIP, ref port, proxyPortOffset, allow_alternate_port,
112 configSource, assetCache, authenticateClass);
114 113
115 return server; 114 return server;
116 } 115 }