aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2016-11-20 04:22:00 +0000
committerUbitUmarov2016-11-20 04:22:00 +0000
commit4c2ece3bcb7a28c746ef42b7cc6939571e0ede3b (patch)
treeedb7affd173838c470900ccc3179a8db3d63128d
parentHG LinkRegion sends region size also (diff)
downloadopensim-SC-4c2ece3bcb7a28c746ef42b7cc6939571e0ede3b.zip
opensim-SC-4c2ece3bcb7a28c746ef42b7cc6939571e0ede3b.tar.gz
opensim-SC-4c2ece3bcb7a28c746ef42b7cc6939571e0ede3b.tar.bz2
opensim-SC-4c2ece3bcb7a28c746ef42b7cc6939571e0ede3b.tar.xz
HG LinkRegion receive region size also. Useless since olde r gatekeepers dont send it
Diffstat (limited to '')
-rw-r--r--OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs13
-rw-r--r--OpenSim/Services/GridService/HypergridLinker.cs8
-rw-r--r--OpenSim/Services/LLLoginService/LLLoginService.cs5
3 files changed, 21 insertions, 5 deletions
diff --git a/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs b/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs
index aad3bd2..eef492d 100644
--- a/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs
+++ b/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs
@@ -73,13 +73,15 @@ namespace OpenSim.Services.Connectors.Hypergrid
73 return "foreignobject/"; 73 return "foreignobject/";
74 } 74 }
75 75
76 public bool LinkRegion(GridRegion info, out UUID regionID, out ulong realHandle, out string externalName, out string imageURL, out string reason) 76 public bool LinkRegion(GridRegion info, out UUID regionID, out ulong realHandle, out string externalName, out string imageURL, out string reason, out int sizeX, out int sizeY)
77 { 77 {
78 regionID = UUID.Zero; 78 regionID = UUID.Zero;
79 imageURL = string.Empty; 79 imageURL = string.Empty;
80 realHandle = 0; 80 realHandle = 0;
81 externalName = string.Empty; 81 externalName = string.Empty;
82 reason = string.Empty; 82 reason = string.Empty;
83 sizeX = (int)Constants.RegionSize;
84 sizeY = (int)Constants.RegionSize;
83 85
84 Hashtable hash = new Hashtable(); 86 Hashtable hash = new Hashtable();
85 hash["region_name"] = info.RegionName; 87 hash["region_name"] = info.RegionName;
@@ -134,8 +136,15 @@ namespace OpenSim.Services.Connectors.Hypergrid
134 externalName = (string)hash["external_name"]; 136 externalName = (string)hash["external_name"];
135 //m_log.Debug(">> HERE, externalName: " + externalName); 137 //m_log.Debug(">> HERE, externalName: " + externalName);
136 } 138 }
139 if (hash["size_x"] != null)
140 {
141 Int32.TryParse((string)hash["size_x"], out sizeX);
142 }
143 if (hash["size_y"] != null)
144 {
145 Int32.TryParse((string)hash["size_y"], out sizeY);
146 }
137 } 147 }
138
139 } 148 }
140 catch (Exception e) 149 catch (Exception e)
141 { 150 {
diff --git a/OpenSim/Services/GridService/HypergridLinker.cs b/OpenSim/Services/GridService/HypergridLinker.cs
index 2af617a..db33b1a 100644
--- a/OpenSim/Services/GridService/HypergridLinker.cs
+++ b/OpenSim/Services/GridService/HypergridLinker.cs
@@ -198,7 +198,7 @@ namespace OpenSim.Services.GridService
198 198
199 mapName = mapName.Trim(); 199 mapName = mapName.Trim();
200 200
201 if (!mapName.StartsWith("http")) 201 if (!mapName.StartsWith("http") && !!mapName.StartsWith("https"))
202 { 202 {
203 // Formats: grid.example.com:8002:region name 203 // Formats: grid.example.com:8002:region name
204 // grid.example.com:region name 204 // grid.example.com:region name
@@ -365,7 +365,9 @@ namespace OpenSim.Services.GridService
365 UUID regionID = UUID.Zero; 365 UUID regionID = UUID.Zero;
366 string externalName = string.Empty; 366 string externalName = string.Empty;
367 string imageURL = string.Empty; 367 string imageURL = string.Empty;
368 if (!m_GatekeeperConnector.LinkRegion(regInfo, out regionID, out handle, out externalName, out imageURL, out reason)) 368 int sizeX = (int)Constants.RegionSize;
369 int sizeY = (int)Constants.RegionSize;
370 if (!m_GatekeeperConnector.LinkRegion(regInfo, out regionID, out handle, out externalName, out imageURL, out reason, out sizeX, out sizeY))
369 return false; 371 return false;
370 372
371 if (regionID == UUID.Zero) 373 if (regionID == UUID.Zero)
@@ -397,6 +399,8 @@ namespace OpenSim.Services.GridService
397// } 399// }
398 400
399 regInfo.RegionID = regionID; 401 regInfo.RegionID = regionID;
402 regInfo.RegionSizeX = sizeX;
403 regInfo.RegionSizeY = sizeY;
400 404
401 if (externalName == string.Empty) 405 if (externalName == string.Empty)
402 regInfo.RegionName = regInfo.ServerURI; 406 regInfo.RegionName = regInfo.ServerURI;
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs
index 1ea17b5..6d63959 100644
--- a/OpenSim/Services/LLLoginService/LLLoginService.cs
+++ b/OpenSim/Services/LLLoginService/LLLoginService.cs
@@ -785,7 +785,10 @@ namespace OpenSim.Services.LLLoginService
785 ulong handle; 785 ulong handle;
786 string imageURL = string.Empty, reason = string.Empty; 786 string imageURL = string.Empty, reason = string.Empty;
787 string message; 787 string message;
788 if (m_GatekeeperConnector.LinkRegion(gatekeeper, out regionID, out handle, out domainName, out imageURL, out reason)) 788 int sizeX = (int)Constants.RegionSize;
789 int sizeY = (int)Constants.RegionSize;
790
791 if (m_GatekeeperConnector.LinkRegion(gatekeeper, out regionID, out handle, out domainName, out imageURL, out reason, out sizeX, out sizeY))
789 { 792 {
790 string homeURI = null; 793 string homeURI = null;
791 if (account.ServiceURLs != null && account.ServiceURLs.ContainsKey("HomeURI")) 794 if (account.ServiceURLs != null && account.ServiceURLs.ContainsKey("HomeURI"))