aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Handlers/Hypergrid/AgentHandlers.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Server/Handlers/Hypergrid/AgentHandlers.cs (renamed from OpenSim/Region/Communications/Hypergrid/HGCommunicationsGridMode.cs)51
1 files changed, 30 insertions, 21 deletions
diff --git a/OpenSim/Region/Communications/Hypergrid/HGCommunicationsGridMode.cs b/OpenSim/Server/Handlers/Hypergrid/AgentHandlers.cs
index e80f6ab..c951653 100644
--- a/OpenSim/Region/Communications/Hypergrid/HGCommunicationsGridMode.cs
+++ b/OpenSim/Server/Handlers/Hypergrid/AgentHandlers.cs
@@ -25,36 +25,45 @@
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using System;
29using System.Collections;
30using System.IO;
28using System.Reflection; 31using System.Reflection;
29using log4net; 32using System.Net;
30using OpenSim.Data; 33using System.Text;
34
35using OpenSim.Server.Base;
36using OpenSim.Server.Handlers.Base;
37using OpenSim.Services.Interfaces;
38using GridRegion = OpenSim.Services.Interfaces.GridRegion;
31using OpenSim.Framework; 39using OpenSim.Framework;
32using OpenSim.Framework.Communications;
33using OpenSim.Framework.Communications.Cache;
34using OpenSim.Framework.Servers;
35using OpenSim.Framework.Servers.HttpServer; 40using OpenSim.Framework.Servers.HttpServer;
36using OpenSim.Region.Communications.OGS1; 41using OpenSim.Server.Handlers.Simulation;
37using OpenSim.Region.Framework.Scenes; 42using Utils = OpenSim.Server.Handlers.Simulation.Utils;
43
44using OpenMetaverse;
45using OpenMetaverse.StructuredData;
46using Nini.Config;
47using log4net;
48
38 49
39namespace OpenSim.Region.Communications.Hypergrid 50namespace OpenSim.Server.Handlers.Hypergrid
40{ 51{
41 public class HGCommunicationsGridMode : CommunicationsManager // CommunicationsOGS1 52 public class GatekeeperAgentHandler : OpenSim.Server.Handlers.Simulation.AgentHandler
42 { 53 {
54 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
55 private IGatekeeperService m_GatekeeperService;
43 56
44 public HGCommunicationsGridMode( 57 public GatekeeperAgentHandler(IGatekeeperService gatekeeper)
45 NetworkServersInfo serversInfo,
46 SceneManager sman, LibraryRootFolder libraryRootFolder)
47 : base(serversInfo, libraryRootFolder)
48 { 58 {
59 m_GatekeeperService = gatekeeper;
60 }
49 61
50 HGUserServices userServices = new HGUserServices(this); 62 protected override bool CreateAgent(GridRegion destination, AgentCircuitData aCircuit, uint teleportFlags, out string reason)
51 // This plugin arrangement could eventually be configurable rather than hardcoded here. 63 {
52 userServices.AddPlugin(new TemporaryUserProfilePlugin()); 64 return m_GatekeeperService.LoginAgent(aCircuit, destination, out reason);
53 userServices.AddPlugin(new HGUserDataPlugin(this, userServices));
54
55 m_userService = userServices;
56 m_messageService = userServices;
57 m_avatarService = userServices;
58 } 65 }
66
59 } 67 }
68
60} 69}