From a7d610ffcca8d707c7f9e9fdd7ad1477981ec2a9 Mon Sep 17 00:00:00 2001 From: diva Date: Wed, 18 Mar 2009 16:37:26 +0000 Subject: Adds support for unlink-region command in hypergrid. --- .../Communications/Local/LocalBackEndServices.cs | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'OpenSim/Region/Communications/Local/LocalBackEndServices.cs') diff --git a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs index 33bc2fa..c52f825 100644 --- a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs +++ b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs @@ -199,6 +199,38 @@ namespace OpenSim.Region.Communications.Local } /// + /// Get information about a neighbouring region + /// + /// + /// + public RegionInfo RequestNeighbourInfo(string name) + { + foreach (RegionInfo info in m_regions.Values) + { + if (info.RegionName == name) + return info; + } + + return null; + } + + /// + /// Get information about a neighbouring region + /// + /// + /// + public RegionInfo RequestNeighbourInfo(string host, uint port) + { + foreach (RegionInfo info in m_regions.Values) + { + if ((info.ExternalHostName == host) && (info.HttpPort == port)) + return info; + } + + return null; + } + + /// /// Get information about the closet region given a region name. /// /// -- cgit v1.1