aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Communications/Local/LocalInterregionComms.cs
diff options
context:
space:
mode:
authordiva2009-03-23 02:37:19 +0000
committerdiva2009-03-23 02:37:19 +0000
commit5af63a6a5c98fb153a07dcaac067ec3b94d6bdee (patch)
tree85ba6a5faadac0ba23a18b6572c478ba13462238 /OpenSim/Region/CoreModules/Communications/Local/LocalInterregionComms.cs
parentFinish folder gives. With this commit, single item and folder gives now (diff)
downloadopensim-SC_OLD-5af63a6a5c98fb153a07dcaac067ec3b94d6bdee.zip
opensim-SC_OLD-5af63a6a5c98fb153a07dcaac067ec3b94d6bdee.tar.gz
opensim-SC_OLD-5af63a6a5c98fb153a07dcaac067ec3b94d6bdee.tar.bz2
opensim-SC_OLD-5af63a6a5c98fb153a07dcaac067ec3b94d6bdee.tar.xz
Root agent retrieval via http/REST. This is a pull, the caller gets the agent. This is not used by the regions yet, but it may be a better alternative to transfer agents even when that is done by the regions. The data is still trivial; soon it will have attachments, scripts and script state. Also, authorization tokens still to come. Serialization using OSD/json, as the other methods.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/Communications/Local/LocalInterregionComms.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Communications/Local/LocalInterregionComms.cs b/OpenSim/Region/CoreModules/Communications/Local/LocalInterregionComms.cs
index 3997258..fb293e8 100644
--- a/OpenSim/Region/CoreModules/Communications/Local/LocalInterregionComms.cs
+++ b/OpenSim/Region/CoreModules/Communications/Local/LocalInterregionComms.cs
@@ -162,6 +162,21 @@ namespace OpenSim.Region.CoreModules.Communications.Local
162 return false; 162 return false;
163 } 163 }
164 164
165 public bool SendRetrieveRootAgent(ulong regionHandle, UUID id, out IAgentData agent)
166 {
167 agent = null;
168 foreach (Scene s in m_sceneList)
169 {
170 if (s.RegionInfo.RegionHandle == regionHandle)
171 {
172 //m_log.Debug("[LOCAL COMMS]: Found region to send ChildAgentUpdate");
173 return s.IncomingRetrieveRootAgent(id, out agent);
174 }
175 }
176 //m_log.Debug("[LOCAL COMMS]: region not found for ChildAgentUpdate");
177 return false;
178 }
179
165 public bool SendReleaseAgent(ulong regionHandle, UUID id, string uri) 180 public bool SendReleaseAgent(ulong regionHandle, UUID id, string uri)
166 { 181 {
167 //uint x, y; 182 //uint x, y;