aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.GridInterfaces
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim.GridInterfaces/Local/LocalGridServer.cs7
-rw-r--r--OpenSim.GridInterfaces/Remote/RemoteGridServer.cs15
2 files changed, 22 insertions, 0 deletions
diff --git a/OpenSim.GridInterfaces/Local/LocalGridServer.cs b/OpenSim.GridInterfaces/Local/LocalGridServer.cs
index 622eb53..fdd6ba4 100644
--- a/OpenSim.GridInterfaces/Local/LocalGridServer.cs
+++ b/OpenSim.GridInterfaces/Local/LocalGridServer.cs
@@ -34,6 +34,7 @@ using OpenSim.Framework.Console;
34using libsecondlife; 34using libsecondlife;
35using Db4objects.Db4o; 35using Db4objects.Db4o;
36using Db4objects.Db4o.Query; 36using Db4objects.Db4o.Query;
37using System.Collections;
37 38
38namespace OpenSim.GridInterfaces.Local 39namespace OpenSim.GridInterfaces.Local
39{ 40{
@@ -114,6 +115,12 @@ namespace OpenSim.GridInterfaces.Local
114 { 115 {
115 116
116 } 117 }
118
119 public override IList RequestMapBlocks(int minX, int minY, int maxX, int maxY)
120 {
121 return new ArrayList();
122 }
123
117 124
118 public override void Close() 125 public override void Close()
119 { 126 {
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
161 return null; 161 return null;
162 } 162 }
163 163
164 public override IList RequestMapBlocks(int minX, int minY, int maxX, int maxY)
165 {
166 Hashtable param = new Hashtable();
167 param["xmin"] = minX;
168 param["ymin"] = minY;
169 param["xmax"] = maxX;
170 param["ymax"] = maxY;
171 IList parameters = new ArrayList();
172 parameters.Add(param);
173 XmlRpcRequest req = new XmlRpcRequest("map_block", parameters);
174 XmlRpcResponse resp = req.Send(GridServerUrl, 3000);
175 Hashtable respData = (Hashtable)resp.Value;
176 return (IList)respData["sim-profiles"];
177 }
178
164 public override void SetServerInfo(string ServerUrl, string SendKey, string RecvKey) 179 public override void SetServerInfo(string ServerUrl, string SendKey, string RecvKey)
165 { 180 {
166 this.GridServerUrl = ServerUrl; 181 this.GridServerUrl = ServerUrl;