aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/Local
diff options
context:
space:
mode:
authorTeravus Ovares2007-12-09 05:59:49 +0000
committerTeravus Ovares2007-12-09 05:59:49 +0000
commitf2b175ef08066649a13b6a42f0a59d9bee503638 (patch)
tree084ef2d6e2c67358b85d62179aee98eaa838d25c /OpenSim/Region/Communications/Local
parentadded more packet handling stubs (diff)
downloadopensim-SC_OLD-f2b175ef08066649a13b6a42f0a59d9bee503638.zip
opensim-SC_OLD-f2b175ef08066649a13b6a42f0a59d9bee503638.tar.gz
opensim-SC_OLD-f2b175ef08066649a13b6a42f0a59d9bee503638.tar.bz2
opensim-SC_OLD-f2b175ef08066649a13b6a42f0a59d9bee503638.tar.xz
* Added some inter-region comms glue for allowing sims to chat amongst themsevles about an agent behind the agent's back.
* Will be using this glue Tomorrow/today to tell other regions what the agent's draw distance is and what region they're actually in so the region can make decisions on what prim to send, if any.
Diffstat (limited to 'OpenSim/Region/Communications/Local')
-rw-r--r--OpenSim/Region/Communications/Local/LocalBackEndServices.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs
index 9d390e4..1bf9801 100644
--- a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs
+++ b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs
@@ -205,6 +205,19 @@ namespace OpenSim.Region.Communications.Local
205 return false; 205 return false;
206 } 206 }
207 207
208 public virtual bool ChildAgentUpdate(ulong regionHandle, ChildAgentDataUpdate cAgentData)
209 {
210 if (m_regionListeners.ContainsKey(regionHandle))
211 {
212 // Console.WriteLine("CommsManager- Informing a region to expect child agent");
213 m_regionListeners[regionHandle].TriggerChildAgentUpdate(regionHandle, cAgentData);
214 //MainLog.Instance.Verbose("INTER", rdebugRegionName + ":Local BackEnd: Got Listener trigginering local event: " + agentData.firstname + " " + agentData.lastname);
215
216 return true;
217 }
218 return false;
219 }
220
208 public bool TriggerRegionUp(RegionInfo region, ulong regionhandle) 221 public bool TriggerRegionUp(RegionInfo region, ulong regionhandle)
209 { 222 {
210 if (m_regionListeners.ContainsKey(regionhandle)) 223 if (m_regionListeners.ContainsKey(regionhandle))
@@ -215,6 +228,15 @@ namespace OpenSim.Region.Communications.Local
215 return false; 228 return false;
216 } 229 }
217 230
231 public bool TriggerChildAgentUpdate(ulong regionHandle, ChildAgentDataUpdate cAgentData)
232 {
233 if (m_regionListeners.ContainsKey(regionHandle))
234 {
235 return m_regionListeners[regionHandle].TriggerChildAgentUpdate(regionHandle,cAgentData);
236 }
237 return false;
238 }
239
218 /// <summary> 240 /// <summary>
219 /// </summary> 241 /// </summary>
220 /// <param name="regionHandle"></param> 242 /// <param name="regionHandle"></param>