aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs
diff options
context:
space:
mode:
authorDr Scofield2009-02-06 16:55:34 +0000
committerDr Scofield2009-02-06 16:55:34 +0000
commit9b66108081a8c8cf79faaa6c541554091c40850e (patch)
tree095a232ae5a9de3a9244bcd34da08294f61eeea5 /OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs
parent* removed superfluous constants class (diff)
downloadopensim-SC_OLD-9b66108081a8c8cf79faaa6c541554091c40850e.zip
opensim-SC_OLD-9b66108081a8c8cf79faaa6c541554091c40850e.tar.gz
opensim-SC_OLD-9b66108081a8c8cf79faaa6c541554091c40850e.tar.bz2
opensim-SC_OLD-9b66108081a8c8cf79faaa6c541554091c40850e.tar.xz
This changeset is the step 1 of 2 in refactoring
OpenSim.Region.Environment into a "framework" part and a modules only part. This first changeset refactors OpenSim.Region.Environment.Scenes, OpenSim.Region.Environment.Interfaces, and OpenSim.Region.Interfaces into OpenSim.Region.Framework.{Interfaces,Scenes} leaving only region modules in OpenSim.Region.Environment. The next step will be to move region modules up from OpenSim.Region.Environment.Modules to OpenSim.Region.CoreModules and then sort out which modules are really core modules and which should move out to forge. I've been very careful to NOT BREAK anything. i hope i've succeeded. as this is the work of a whole week i hope i managed to keep track with the applied patches of the last week --- could any of you that did check in stuff have a look at whether it survived? thx!
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs (renamed from OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs)27
1 files changed, 10 insertions, 17 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
index 9935512..a2b2537 100644
--- a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
@@ -33,14 +33,13 @@ using System.Threading;
33using OpenMetaverse; 33using OpenMetaverse;
34using OpenMetaverse.StructuredData; 34using OpenMetaverse.StructuredData;
35using log4net; 35using log4net;
36using OpenSim.Region.Environment.Interfaces;
37using OpenSim.Framework; 36using OpenSim.Framework;
38using OpenSim.Framework.Communications; 37using OpenSim.Framework.Communications;
39using OpenSim.Framework.Communications.Capabilities; 38using OpenSim.Framework.Communications.Capabilities;
40using OpenSim.Region.Interfaces; 39using OpenSim.Region.Framework.Interfaces;
41using OSD = OpenMetaverse.StructuredData.OSD; 40using OSD = OpenMetaverse.StructuredData.OSD;
42 41
43namespace OpenSim.Region.Environment.Scenes 42namespace OpenSim.Region.Framework.Scenes
44{ 43{
45 public delegate void KiPrimitiveDelegate(uint localID); 44 public delegate void KiPrimitiveDelegate(uint localID);
46 45
@@ -305,13 +304,10 @@ namespace OpenSim.Region.Environment.Scenes
305 IEventQueue eq = avatar.Scene.RequestModuleInterface<IEventQueue>(); 304 IEventQueue eq = avatar.Scene.RequestModuleInterface<IEventQueue>();
306 if (eq != null) 305 if (eq != null)
307 { 306 {
308 OSD Item = EventQueueHelper.EnableSimulator(reg.RegionHandle, endPoint); 307 eq.EnableSimulator(reg.RegionHandle, endPoint, avatar.UUID);
309 eq.Enqueue(Item, avatar.UUID); 308 eq.EstablishAgentCommunication(avatar.UUID, endPoint, capsPath);
310 309 m_log.DebugFormat("[CAPS]: Sending new CAPS seed url {0} to client {1} in region {2}",
311 Item = EventQueueHelper.EstablishAgentCommunication(avatar.UUID, endPoint.ToString(), capsPath); 310 capsPath, avatar.UUID, avatar.Scene.RegionInfo.RegionName);
312 eq.Enqueue(Item, avatar.UUID);
313
314 m_log.DebugFormat("[CAPS]: Sending new CAPS seed url {0} to client {1} in region {2}", capsPath, avatar.UUID, avatar.Scene.RegionInfo.RegionName);
315 } 311 }
316 else 312 else
317 { 313 {
@@ -806,16 +802,14 @@ namespace OpenSim.Region.Environment.Scenes
806 802
807 if (eq != null) 803 if (eq != null)
808 { 804 {
809 OSD Item = EventQueueHelper.EnableSimulator(reg.RegionHandle, endPoint); 805 eq.EnableSimulator(reg.RegionHandle, endPoint, avatar.UUID);
810 eq.Enqueue(Item, avatar.UUID);
811 806
812 // ES makes the client send a UseCircuitCode message to the destination, 807 // ES makes the client send a UseCircuitCode message to the destination,
813 // which triggers a bunch of things there. 808 // which triggers a bunch of things there.
814 // So let's wait 809 // So let's wait
815 Thread.Sleep(2000); 810 Thread.Sleep(2000);
816 811
817 Item = EventQueueHelper.EstablishAgentCommunication(avatar.UUID, endPoint.ToString(), capsPath); 812 eq.EstablishAgentCommunication(avatar.UUID, endPoint, capsPath);
818 eq.Enqueue(Item, avatar.UUID);
819 } 813 }
820 else 814 else
821 { 815 {
@@ -860,9 +854,8 @@ namespace OpenSim.Region.Environment.Scenes
860 854
861 if (eq != null) 855 if (eq != null)
862 { 856 {
863 OSD Item = EventQueueHelper.TeleportFinishEvent(reg.RegionHandle, 13, endPoint, 857 eq.TeleportFinishEvent(reg.RegionHandle, 13, endPoint,
864 4, teleportFlags, capsPath, avatar.UUID); 858 4, teleportFlags, capsPath, avatar.UUID);
865 eq.Enqueue(Item, avatar.UUID);
866 } 859 }
867 else 860 else
868 { 861 {