aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/Hypergrid/HGGridServices.cs
diff options
context:
space:
mode:
authordiva2009-03-18 16:37:26 +0000
committerdiva2009-03-18 16:37:26 +0000
commita7d610ffcca8d707c7f9e9fdd7ad1477981ec2a9 (patch)
tree4f8a0c98e680fba6af670650993ecebdad4c8de2 /OpenSim/Region/Communications/Hypergrid/HGGridServices.cs
parentAdd an event to process undelivered IMs (diff)
downloadopensim-SC-a7d610ffcca8d707c7f9e9fdd7ad1477981ec2a9.zip
opensim-SC-a7d610ffcca8d707c7f9e9fdd7ad1477981ec2a9.tar.gz
opensim-SC-a7d610ffcca8d707c7f9e9fdd7ad1477981ec2a9.tar.bz2
opensim-SC-a7d610ffcca8d707c7f9e9fdd7ad1477981ec2a9.tar.xz
Adds support for unlink-region command in hypergrid.
Diffstat (limited to 'OpenSim/Region/Communications/Hypergrid/HGGridServices.cs')
-rw-r--r--OpenSim/Region/Communications/Hypergrid/HGGridServices.cs41
1 files changed, 41 insertions, 0 deletions
diff --git a/OpenSim/Region/Communications/Hypergrid/HGGridServices.cs b/OpenSim/Region/Communications/Hypergrid/HGGridServices.cs
index 4493591..5b3343a 100644
--- a/OpenSim/Region/Communications/Hypergrid/HGGridServices.cs
+++ b/OpenSim/Region/Communications/Hypergrid/HGGridServices.cs
@@ -258,6 +258,47 @@ namespace OpenSim.Region.Communications.Hypergrid
258 return null; 258 return null;
259 } 259 }
260 260
261 public virtual RegionInfo RequestNeighbourInfo(string name)
262 {
263 foreach (RegionInfo info in m_hyperlinkRegions)
264 {
265 //m_log.Debug(" .. " + info.RegionHandle);
266 if (info.RegionName == name) return info;
267 }
268
269 foreach (RegionInfo info in m_knownRegions.Values)
270 {
271 if (info.RegionName == name)
272 {
273 //m_log.Debug("XXX------ known region " + info.RegionHandle);
274 return info;
275 }
276 }
277
278 return null;
279 }
280
281 public virtual RegionInfo RequestNeighbourInfo(string hostName, uint port)
282 {
283 foreach (RegionInfo info in m_hyperlinkRegions)
284 {
285 //m_log.Debug(" .. " + info.RegionHandle);
286 if ((info.ExternalHostName == hostName) && (info.HttpPort == port))
287 return info;
288 }
289
290 foreach (RegionInfo info in m_knownRegions.Values)
291 {
292 if ((info.ExternalHostName == hostName) && (info.HttpPort == port))
293 {
294 //m_log.Debug("XXX------ known region " + info.RegionHandle);
295 return info;
296 }
297 }
298
299 return null;
300 }
301
261 public virtual RegionInfo RequestClosestRegion(string regionName) 302 public virtual RegionInfo RequestClosestRegion(string regionName)
262 { 303 {
263 foreach (RegionInfo info in m_hyperlinkRegions) 304 foreach (RegionInfo info in m_hyperlinkRegions)