From a0607dadaf0f5be4262b48829f3a64daef965c8c Mon Sep 17 00:00:00 2001 From: morphw Date: Sun, 20 May 2007 02:35:23 +0000 Subject: Add RequestMapBlocks to local and remote interfaces --- OpenSim.GridInterfaces/Remote/RemoteGridServer.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'OpenSim.GridInterfaces/Remote/RemoteGridServer.cs') diff --git a/OpenSim.GridInterfaces/Remote/RemoteGridServer.cs b/OpenSim.GridInterfaces/Remote/RemoteGridServer.cs index 6a4484f..7f911d8 100644 --- a/OpenSim.GridInterfaces/Remote/RemoteGridServer.cs +++ b/OpenSim.GridInterfaces/Remote/RemoteGridServer.cs @@ -161,6 +161,21 @@ namespace OpenSim.GridInterfaces.Remote return null; } + public override IList RequestMapBlocks(int minX, int minY, int maxX, int maxY) + { + Hashtable param = new Hashtable(); + param["xmin"] = minX; + param["ymin"] = minY; + param["xmax"] = maxX; + param["ymax"] = maxY; + IList parameters = new ArrayList(); + parameters.Add(param); + XmlRpcRequest req = new XmlRpcRequest("map_block", parameters); + XmlRpcResponse resp = req.Send(GridServerUrl, 3000); + Hashtable respData = (Hashtable)resp.Value; + return (IList)respData["sim-profiles"]; + } + public override void SetServerInfo(string ServerUrl, string SendKey, string RecvKey) { this.GridServerUrl = ServerUrl; -- cgit v1.1