aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer/OpenSimMain.cs
diff options
context:
space:
mode:
authorlbsa712007-04-11 20:07:58 +0000
committerlbsa712007-04-11 20:07:58 +0000
commit1a28ef6292a152a69d0f53803daacc7dad522cea (patch)
tree3d4e2eed288b208f1d0db7d37e8f1d9a1dfca1c5 /OpenSim.RegionServer/OpenSimMain.cs
parent* cleaning (diff)
downloadopensim-SC_OLD-1a28ef6292a152a69d0f53803daacc7dad522cea.zip
opensim-SC_OLD-1a28ef6292a152a69d0f53803daacc7dad522cea.tar.gz
opensim-SC_OLD-1a28ef6292a152a69d0f53803daacc7dad522cea.tar.bz2
opensim-SC_OLD-1a28ef6292a152a69d0f53803daacc7dad522cea.tar.xz
* Replaced GridHTTPServer and UserHTTPServer with BaseHttpServer
* Now dumping default value in config. *
Diffstat (limited to 'OpenSim.RegionServer/OpenSimMain.cs')
-rw-r--r--OpenSim.RegionServer/OpenSimMain.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim.RegionServer/OpenSimMain.cs b/OpenSim.RegionServer/OpenSimMain.cs
index 9ea32b1..8c93128 100644
--- a/OpenSim.RegionServer/OpenSimMain.cs
+++ b/OpenSim.RegionServer/OpenSimMain.cs
@@ -60,7 +60,6 @@ namespace OpenSim
60 //private IGenericConfig remoteConfig; 60 //private IGenericConfig remoteConfig;
61 private PhysicsManager physManager; 61 private PhysicsManager physManager;
62 private Grid GridServers; 62 private Grid GridServers;
63 private BaseHttpServer _httpServer;
64 private PacketServer _packetServer; 63 private PacketServer _packetServer;
65 private World LocalWorld; 64 private World LocalWorld;
66 private AssetCache AssetCache; 65 private AssetCache AssetCache;
@@ -175,12 +174,13 @@ namespace OpenSim
175 174
176 m_console.WriteLine("Main.cs:Startup() - Initialising HTTP server"); 175 m_console.WriteLine("Main.cs:Startup() - Initialising HTTP server");
177 // HttpServer = new SimCAPSHTTPServer(GridServers.GridServer, Cfg.IPListenPort); 176 // HttpServer = new SimCAPSHTTPServer(GridServers.GridServer, Cfg.IPListenPort);
178 _httpServer = new BaseHttpServer(regionData.IPListenPort); 177
178 BaseHttpServer httpServer = new BaseHttpServer( regionData.IPListenPort );
179 179
180 if (gridServer.GetName() == "Remote") 180 if (gridServer.GetName() == "Remote")
181 { 181 {
182 //we are in Grid mode so set a XmlRpc handler to handle "expect_user" calls from the user server 182 //we are in Grid mode so set a XmlRpc handler to handle "expect_user" calls from the user server
183 _httpServer.AddXmlRPCHandler("expect_user", 183 httpServer.AddXmlRPCHandler("expect_user",
184 delegate(XmlRpcRequest request) 184 delegate(XmlRpcRequest request)
185 { 185 {
186 Hashtable requestData = (Hashtable)request.Params[0]; 186 Hashtable requestData = (Hashtable)request.Params[0];
@@ -196,7 +196,7 @@ namespace OpenSim
196 196
197 return new XmlRpcResponse(); 197 return new XmlRpcResponse();
198 }); 198 });
199 _httpServer.AddRestHandler("GET", "/simstatus/", 199 httpServer.AddRestHandler("GET", "/simstatus/",
200 delegate(string request, string path, string param ) 200 delegate(string request, string path, string param )
201 { 201 {
202 return "OK"; 202 return "OK";
@@ -218,20 +218,20 @@ namespace OpenSim
218 this.GridServers.UserServer = loginServer; 218 this.GridServers.UserServer = loginServer;
219 adminLoginServer = loginServer; 219 adminLoginServer = loginServer;
220 220
221 _httpServer.AddXmlRPCHandler("login_to_simulator", loginServer.LocalUserManager.XmlRpcLoginMethod); 221 httpServer.AddXmlRPCHandler("login_to_simulator", loginServer.LocalUserManager.XmlRpcLoginMethod);
222 } 222 }
223 else 223 else
224 { 224 {
225 //sandbox mode with loginserver not using accounts 225 //sandbox mode with loginserver not using accounts
226 _httpServer.AddXmlRPCHandler("login_to_simulator", loginServer.XmlRpcLoginMethod); 226 httpServer.AddXmlRPCHandler("login_to_simulator", loginServer.XmlRpcLoginMethod);
227 } 227 }
228 } 228 }
229 229
230 AdminWebFront adminWebFront = new AdminWebFront("Admin", LocalWorld, InventoryCache, adminLoginServer); 230 AdminWebFront adminWebFront = new AdminWebFront("Admin", LocalWorld, InventoryCache, adminLoginServer);
231 adminWebFront.LoadMethods(_httpServer); 231 adminWebFront.LoadMethods(httpServer);
232 232
233 m_console.WriteLine("Main.cs:Startup() - Starting HTTP server"); 233 m_console.WriteLine("Main.cs:Startup() - Starting HTTP server");
234 _httpServer.Start(); 234 httpServer.Start();
235 235
236 MainServerListener(); 236 MainServerListener();
237 237