diff options
author | Adam Frisby | 2007-05-04 07:43:07 +0000 |
---|---|---|
committer | Adam Frisby | 2007-05-04 07:43:07 +0000 |
commit | 5eacce71ad6513bf28dbe239ec7fd9802c3279eb (patch) | |
tree | f8ff41c53cf6db17efc99fd3e07911e67e0ed0b1 /OpenSim.RegionServer | |
parent | Comments sucker! (diff) | |
download | opensim-SC-5eacce71ad6513bf28dbe239ec7fd9802c3279eb.zip opensim-SC-5eacce71ad6513bf28dbe239ec7fd9802c3279eb.tar.gz opensim-SC-5eacce71ad6513bf28dbe239ec7fd9802c3279eb.tar.bz2 opensim-SC-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 'OpenSim.RegionServer')
-rw-r--r-- | OpenSim.RegionServer/OpenSimMain.cs | 12 | ||||
-rw-r--r-- | OpenSim.RegionServer/world/Avatar.cs | 1 |
2 files changed, 11 insertions, 2 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", |
diff --git a/OpenSim.RegionServer/world/Avatar.cs b/OpenSim.RegionServer/world/Avatar.cs index 97ed78d..7f5fd12 100644 --- a/OpenSim.RegionServer/world/Avatar.cs +++ b/OpenSim.RegionServer/world/Avatar.cs | |||
@@ -102,7 +102,6 @@ namespace OpenSim.world | |||
102 | 102 | ||
103 | public static void SetupTemplate(string name) | 103 | public static void SetupTemplate(string name) |
104 | { | 104 | { |
105 | int i = 0; | ||
106 | FileInfo fInfo = new FileInfo(name); | 105 | FileInfo fInfo = new FileInfo(name); |
107 | long numBytes = fInfo.Length; | 106 | long numBytes = fInfo.Length; |
108 | FileStream fStream = new FileStream(name, FileMode.Open, FileAccess.Read); | 107 | FileStream fStream = new FileStream(name, FileMode.Open, FileAccess.Read); |