diff options
author | dahlia | 2010-10-20 20:43:08 -0700 |
---|---|---|
committer | dahlia | 2010-10-20 20:43:08 -0700 |
commit | f8a47801ee9421282eb3abc3e89a465fc71f6930 (patch) | |
tree | 1309c1db63355ee56f719e0fabe81278f3ef47b4 /OpenSim/Services/GridService/HypergridLinker.cs | |
parent | fix combining of multiple physics submeshes (diff) | |
parent | * remove some spurious debug info (diff) | |
download | opensim-SC-f8a47801ee9421282eb3abc3e89a465fc71f6930.zip opensim-SC-f8a47801ee9421282eb3abc3e89a465fc71f6930.tar.gz opensim-SC-f8a47801ee9421282eb3abc3e89a465fc71f6930.tar.bz2 opensim-SC-f8a47801ee9421282eb3abc3e89a465fc71f6930.tar.xz |
Merge branch 'master' of ssh://MyConnection01/var/git/opensim
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/GridService/HypergridLinker.cs | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/OpenSim/Services/GridService/HypergridLinker.cs b/OpenSim/Services/GridService/HypergridLinker.cs index b86fb6f..74e864b 100644 --- a/OpenSim/Services/GridService/HypergridLinker.cs +++ b/OpenSim/Services/GridService/HypergridLinker.cs | |||
@@ -127,7 +127,7 @@ namespace OpenSim.Services.GridService | |||
127 | if (MainConsole.Instance != null) | 127 | if (MainConsole.Instance != null) |
128 | { | 128 | { |
129 | MainConsole.Instance.Commands.AddCommand("hypergrid", false, "link-region", | 129 | MainConsole.Instance.Commands.AddCommand("hypergrid", false, "link-region", |
130 | "link-region <Xloc> <Yloc> <HostName>:<HttpPort>[:<RemoteRegionName>] <cr>", | 130 | "link-region <Xloc> <Yloc> <RegionIP> <RegionPort> [<RegionServerURI] [<RemoteRegionName>] <cr>", |
131 | "Link a hypergrid region", RunCommand); | 131 | "Link a hypergrid region", RunCommand); |
132 | MainConsole.Instance.Commands.AddCommand("hypergrid", false, "unlink-region", | 132 | MainConsole.Instance.Commands.AddCommand("hypergrid", false, "unlink-region", |
133 | "unlink-region <local name> or <HostName>:<HttpPort> <cr>", | 133 | "unlink-region <local name> or <HostName>:<HttpPort> <cr>", |
@@ -198,11 +198,7 @@ namespace OpenSim.Services.GridService | |||
198 | 198 | ||
199 | return null; | 199 | return null; |
200 | } | 200 | } |
201 | 201 | public bool TryCreateLink(UUID scopeID, int xloc, int yloc, string externalRegionName, uint externalPort, string externalHostName, out GridRegion regInfo, out string reason) | |
202 | |||
203 | // From the command line and the 2 above | ||
204 | public bool TryCreateLink(UUID scopeID, int xloc, int yloc, | ||
205 | string externalRegionName, uint externalPort, string externalHostName, out GridRegion regInfo, out string reason) | ||
206 | { | 202 | { |
207 | m_log.DebugFormat("[HYPERGRID LINKER]: Link to {0}:{1}:{2}, in {3}-{4}", externalHostName, externalPort, externalRegionName, xloc, yloc); | 203 | m_log.DebugFormat("[HYPERGRID LINKER]: Link to {0}:{1}:{2}, in {3}-{4}", externalHostName, externalPort, externalRegionName, xloc, yloc); |
208 | 204 | ||
@@ -217,8 +213,11 @@ namespace OpenSim.Services.GridService | |||
217 | 213 | ||
218 | // Big HACK for Simian Grid !!! | 214 | // Big HACK for Simian Grid !!! |
219 | // We need to clean up all URLs used in OpenSim !!! | 215 | // We need to clean up all URLs used in OpenSim !!! |
220 | if (externalHostName.Contains("/")) | 216 | if (externalHostName.Contains("/")) { |
221 | regInfo.ServerURI = externalHostName; | 217 | regInfo.ServerURI = externalHostName; |
218 | } else { | ||
219 | regInfo.ServerURI = "http://" + externalHostName + ":" + externalPort.ToString(); | ||
220 | } | ||
222 | 221 | ||
223 | try | 222 | try |
224 | { | 223 | { |
@@ -509,12 +508,16 @@ namespace OpenSim.Services.GridService | |||
509 | int xloc, yloc; | 508 | int xloc, yloc; |
510 | uint externalPort; | 509 | uint externalPort; |
511 | string externalHostName; | 510 | string externalHostName; |
511 | string serverURI; | ||
512 | try | 512 | try |
513 | { | 513 | { |
514 | xloc = Convert.ToInt32(cmdparams[0]); | 514 | xloc = Convert.ToInt32(cmdparams[0]); |
515 | yloc = Convert.ToInt32(cmdparams[1]); | 515 | yloc = Convert.ToInt32(cmdparams[1]); |
516 | externalPort = Convert.ToUInt32(cmdparams[3]); | 516 | externalPort = Convert.ToUInt32(cmdparams[3]); |
517 | externalHostName = cmdparams[2]; | 517 | externalHostName = cmdparams[2]; |
518 | if ( cmdparams.Length == 4 ) { | ||
519 | |||
520 | } | ||
518 | //internalPort = Convert.ToUInt32(cmdparams[4]); | 521 | //internalPort = Convert.ToUInt32(cmdparams[4]); |
519 | //remotingPort = Convert.ToUInt32(cmdparams[5]); | 522 | //remotingPort = Convert.ToUInt32(cmdparams[5]); |
520 | } | 523 | } |