diff options
author | Adam Frisby | 2007-05-13 14:59:24 +0000 |
---|---|---|
committer | Adam Frisby | 2007-05-13 14:59:24 +0000 |
commit | b1101797307504cfc2eea6317d4c4dc2b5964480 (patch) | |
tree | 35d7ec88ff9ce0171260ba7166bc6cb3c1fcbb4d /OpenGridServices.GridServer/GridManager.cs | |
parent | Inventory should be working again in sandbox mode (diff) | |
download | opensim-SC_OLD-b1101797307504cfc2eea6317d4c4dc2b5964480.zip opensim-SC_OLD-b1101797307504cfc2eea6317d4c4dc2b5964480.tar.gz opensim-SC_OLD-b1101797307504cfc2eea6317d4c4dc2b5964480.tar.bz2 opensim-SC_OLD-b1101797307504cfc2eea6317d4c4dc2b5964480.tar.xz |
* Fixed MySQL Grid Manager
* Added preliminary support for DB UserServer (incomplete)
* Added better handling of defaults to Grid Manager.
* Renamed SQL/regions.sql to SQL/mysql-regions.sql.
Diffstat (limited to 'OpenGridServices.GridServer/GridManager.cs')
-rw-r--r-- | OpenGridServices.GridServer/GridManager.cs | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/OpenGridServices.GridServer/GridManager.cs b/OpenGridServices.GridServer/GridManager.cs index 02a6a50..cfccd02 100644 --- a/OpenGridServices.GridServer/GridManager.cs +++ b/OpenGridServices.GridServer/GridManager.cs | |||
@@ -16,7 +16,7 @@ namespace OpenGridServices.GridServer | |||
16 | class GridManager | 16 | class GridManager |
17 | { | 17 | { |
18 | Dictionary<string, IGridData> _plugins = new Dictionary<string, IGridData>(); | 18 | Dictionary<string, IGridData> _plugins = new Dictionary<string, IGridData>(); |
19 | public string defaultRecvKey; | 19 | public OpenSim.Framework.Interfaces.GridConfig config; |
20 | 20 | ||
21 | /// <summary> | 21 | /// <summary> |
22 | /// Adds a new grid server plugin - grid servers will be requested in the order they were loaded. | 22 | /// Adds a new grid server plugin - grid servers will be requested in the order they were loaded. |
@@ -269,7 +269,7 @@ namespace OpenGridServices.GridServer | |||
269 | TheSim = new SimProfileData(); | 269 | TheSim = new SimProfileData(); |
270 | LLUUID UUID = new LLUUID(param); | 270 | LLUUID UUID = new LLUUID(param); |
271 | TheSim.UUID = UUID; | 271 | TheSim.UUID = UUID; |
272 | TheSim.regionRecvKey = defaultRecvKey; | 272 | TheSim.regionRecvKey = config.SimRecvKey; |
273 | } | 273 | } |
274 | 274 | ||
275 | XmlDocument doc = new XmlDocument(); | 275 | XmlDocument doc = new XmlDocument(); |
@@ -291,6 +291,20 @@ namespace OpenGridServices.GridServer | |||
291 | { | 291 | { |
292 | return "ERROR! invalid key"; | 292 | return "ERROR! invalid key"; |
293 | } | 293 | } |
294 | |||
295 | //TheSim.regionSendKey = Cfg; | ||
296 | TheSim.regionRecvKey = config.SimRecvKey; | ||
297 | TheSim.regionSendKey = config.SimSendKey; | ||
298 | TheSim.regionSecret = config.SimRecvKey; | ||
299 | TheSim.regionDataURI = ""; | ||
300 | TheSim.regionAssetURI = config.DefaultAssetServer; | ||
301 | TheSim.regionAssetRecvKey = config.AssetRecvKey; | ||
302 | TheSim.regionAssetSendKey = config.AssetSendKey; | ||
303 | TheSim.regionUserURI = config.DefaultUserServer; | ||
304 | TheSim.regionUserSendKey = config.UserSendKey; | ||
305 | TheSim.regionUserRecvKey = config.UserRecvKey; | ||
306 | |||
307 | |||
294 | for (int i = 0; i < simnode.ChildNodes.Count; i++) | 308 | for (int i = 0; i < simnode.ChildNodes.Count; i++) |
295 | { | 309 | { |
296 | switch (simnode.ChildNodes[i].Name) | 310 | switch (simnode.ChildNodes[i].Name) |
@@ -319,6 +333,8 @@ namespace OpenGridServices.GridServer | |||
319 | } | 333 | } |
320 | } | 334 | } |
321 | 335 | ||
336 | TheSim.serverURI = "http://" + TheSim.serverIP + ":" + TheSim.serverPort + "/"; | ||
337 | |||
322 | try | 338 | try |
323 | { | 339 | { |
324 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Attempting to add a new region to the grid - " + _plugins.Count + " storage provider(s) registered."); | 340 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Attempting to add a new region to the grid - " + _plugins.Count + " storage provider(s) registered."); |