diff options
author | morphw | 2007-05-20 02:35:23 +0000 |
---|---|---|
committer | morphw | 2007-05-20 02:35:23 +0000 |
commit | a0607dadaf0f5be4262b48829f3a64daef965c8c (patch) | |
tree | dbdcd25fab016c71e287de4cf45e59c4984ee754 /OpenSim.GridInterfaces | |
parent | Add RequestMapBlocks method to GridServer interfaces (diff) | |
download | opensim-SC_OLD-a0607dadaf0f5be4262b48829f3a64daef965c8c.zip opensim-SC_OLD-a0607dadaf0f5be4262b48829f3a64daef965c8c.tar.gz opensim-SC_OLD-a0607dadaf0f5be4262b48829f3a64daef965c8c.tar.bz2 opensim-SC_OLD-a0607dadaf0f5be4262b48829f3a64daef965c8c.tar.xz |
Add RequestMapBlocks to local and remote interfaces
Diffstat (limited to 'OpenSim.GridInterfaces')
-rw-r--r-- | OpenSim.GridInterfaces/Local/LocalGridServer.cs | 7 | ||||
-rw-r--r-- | OpenSim.GridInterfaces/Remote/RemoteGridServer.cs | 15 |
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; | |||
34 | using libsecondlife; | 34 | using libsecondlife; |
35 | using Db4objects.Db4o; | 35 | using Db4objects.Db4o; |
36 | using Db4objects.Db4o.Query; | 36 | using Db4objects.Db4o.Query; |
37 | using System.Collections; | ||
37 | 38 | ||
38 | namespace OpenSim.GridInterfaces.Local | 39 | namespace 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; |