aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer/OpenSimMain.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-05-04 07:43:07 +0000
committerAdam Frisby2007-05-04 07:43:07 +0000
commit5eacce71ad6513bf28dbe239ec7fd9802c3279eb (patch)
treef8ff41c53cf6db17efc99fd3e07911e67e0ed0b1 /OpenSim.RegionServer/OpenSimMain.cs
parentComments sucker! (diff)
downloadopensim-SC_OLD-5eacce71ad6513bf28dbe239ec7fd9802c3279eb.zip
opensim-SC_OLD-5eacce71ad6513bf28dbe239ec7fd9802c3279eb.tar.gz
opensim-SC_OLD-5eacce71ad6513bf28dbe239ec7fd9802c3279eb.tar.bz2
opensim-SC_OLD-5eacce71ad6513bf28dbe239ec7fd9802c3279eb.tar.xz
* Removed superfluous int to prevent warning
* Changed OGSServer on RegionServer to bind to <port> - 500 rather than a single fixed port * Added support for the grid server to tell us who we are (optional)
Diffstat (limited to '')
-rw-r--r--OpenSim.RegionServer/OpenSimMain.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim.RegionServer/OpenSimMain.cs b/OpenSim.RegionServer/OpenSimMain.cs
index 836f57f..61441b2 100644
--- a/OpenSim.RegionServer/OpenSimMain.cs
+++ b/OpenSim.RegionServer/OpenSimMain.cs
@@ -184,6 +184,16 @@ namespace OpenSim
184 { 184 {
185 this.LocalWorld.m_datastore = ((string)((RemoteGridBase)GridServers.GridServer).GridData["data_uri"]); 185 this.LocalWorld.m_datastore = ((string)((RemoteGridBase)GridServers.GridServer).GridData["data_uri"]);
186 } 186 }
187
188 if (((RemoteGridBase)(GridServers.GridServer)).GridData["regionname"].ToString() != "")
189 {
190 // The grid server has told us who we are
191 // We must obey the grid server.
192 regionData.RegionLocX = Convert.ToUInt32(((RemoteGridBase)(GridServers.GridServer)).GridData["region_locx"].ToString());
193 regionData.RegionLocY = Convert.ToUInt32(((RemoteGridBase)(GridServers.GridServer)).GridData["region_locy"].ToString());
194 regionData.RegionName = ((RemoteGridBase)(GridServers.GridServer)).GridData["regionname"].ToString();
195 }
196
187 } 197 }
188 198
189 199
@@ -224,7 +234,7 @@ namespace OpenSim
224 if (gridServer.GetName() == "Remote") 234 if (gridServer.GetName() == "Remote")
225 { 235 {
226 // should startup the OGS protocol server here 236 // should startup the OGS protocol server here
227 OGSServer = new OpenGridProtocolServer(8500); 237 OGSServer = new OpenGridProtocolServer(this.regionData.IPListenPort - 500); // Changed so we can have more than one OGSServer per machine.
228 238
229 // we are in Grid mode so set a XmlRpc handler to handle "expect_user" calls from the user server 239 // we are in Grid mode so set a XmlRpc handler to handle "expect_user" calls from the user server
230 httpServer.AddXmlRPCHandler("expect_user", 240 httpServer.AddXmlRPCHandler("expect_user",