aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
diff options
context:
space:
mode:
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 {