From 303ea70efad0ba703743f4a5b9812250c314c2d4 Mon Sep 17 00:00:00 2001 From: MW Date: Sat, 23 Jun 2007 11:14:58 +0000 Subject: More work on CAPS handler. --- OpenSim/OpenSim.Region/Scenes/Scene.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'OpenSim/OpenSim.Region/Scenes/Scene.cs') diff --git a/OpenSim/OpenSim.Region/Scenes/Scene.cs b/OpenSim/OpenSim.Region/Scenes/Scene.cs index 14c77c2..07f1d70 100644 --- a/OpenSim/OpenSim.Region/Scenes/Scene.cs +++ b/OpenSim/OpenSim.Region/Scenes/Scene.cs @@ -69,7 +69,7 @@ namespace OpenSim.Region.Scenes protected RegionCommsListener regionCommsHost; protected CommunicationsManager commsManager; - protected Caps TestCapsHandler; + protected List capsHandlers = new List(); protected BaseHttpServer httpListener; public ParcelManager parcelManager; @@ -132,8 +132,7 @@ namespace OpenSim.Region.Scenes ScenePresence.LoadAnims(); this.httpListener = httpServer; - this.TestCapsHandler = new Caps(httpListener, "127.0.0.1" , 9000); - this.TestCapsHandler.RegisterHandlers(); + } catch (Exception e) { @@ -728,6 +727,13 @@ namespace OpenSim.Region.Scenes //should just check that its meant for this region if (regionHandle == this.m_regInfo.RegionHandle) { + if (agent.CapsPath != "") + { + //Console.WriteLine("new user, so creating caps handler for it"); + Caps cap = new Caps(httpListener, this.m_regInfo.IPListenAddr, 9000, agent.CapsPath, agent.AgentID); + cap.RegisterHandlers(); + this.capsHandlers.Add(cap); + } this.authenticateHandler.AddNewCircuit(agent.circuitcode, agent); } } -- cgit v1.1