diff options
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 'OpenSim/Region/CoreModules/Communications/Local')
-rw-r--r-- | OpenSim/Region/CoreModules/Communications/Local/LocalInterregionComms.cs | 15 |
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; |