aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/Communications/Local
diff options
context:
space:
mode:
authordiva2009-01-03 07:05:33 +0000
committerdiva2009-01-03 07:05:33 +0000
commit158de95bde7cdee09334c40baee5122fd8f196e2 (patch)
tree8a8b1f41db53475cca08633cbeec09d5425a8745 /OpenSim/Region/Environment/Modules/Communications/Local
parentPlumbing for moving InformRegionOfChildAgent over to RESTComms: pack and unpa... (diff)
downloadopensim-SC-158de95bde7cdee09334c40baee5122fd8f196e2.zip
opensim-SC-158de95bde7cdee09334c40baee5122fd8f196e2.tar.gz
opensim-SC-158de95bde7cdee09334c40baee5122fd8f196e2.tar.bz2
opensim-SC-158de95bde7cdee09334c40baee5122fd8f196e2.tar.xz
Another interregion comms change that will not work well with previous versions. This commit moves InformRegionOfChildAgent from OGS1 to RESTComms, effectively having the complete child agent life cycle over REST: create=POST, update=PUT, close=DELETE.
Additional changes include more functions in the IHyperlink interface, and some refactorings in the HG code for better reuse in RESTComms.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Communications/Local')
-rw-r--r--OpenSim/Region/Environment/Modules/Communications/Local/LocalInterregionComms.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/Communications/Local/LocalInterregionComms.cs b/OpenSim/Region/Environment/Modules/Communications/Local/LocalInterregionComms.cs
index 135a05e..efc5c39 100644
--- a/OpenSim/Region/Environment/Modules/Communications/Local/LocalInterregionComms.cs
+++ b/OpenSim/Region/Environment/Modules/Communications/Local/LocalInterregionComms.cs
@@ -118,6 +118,21 @@ namespace OpenSim.Region.Environment.Modules.Communications.Local
118 118
119 #region IInterregionComms 119 #region IInterregionComms
120 120
121 public bool SendCreateChildAgent(ulong regionHandle, AgentCircuitData aCircuit)
122 {
123 foreach (Scene s in m_sceneList)
124 {
125 if (s.RegionInfo.RegionHandle == regionHandle)
126 {
127 //m_log.Debug("[LOCAL COMMS]: Found region to send SendCreateChildAgent");
128 s.NewUserConnection(aCircuit);
129 return true;
130 }
131 }
132 //m_log.Debug("[LOCAL COMMS]: region not found for SendCreateChildAgent");
133 return false;
134 }
135
121 public bool SendChildAgentUpdate(ulong regionHandle, AgentData cAgentData) 136 public bool SendChildAgentUpdate(ulong regionHandle, AgentData cAgentData)
122 { 137 {
123 foreach (Scene s in m_sceneList) 138 foreach (Scene s in m_sceneList)