diff options
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 | ||
28 | using System; | ||
29 | using System.Collections; | ||
30 | using System.IO; | ||
28 | using System.Reflection; | 31 | using System.Reflection; |
29 | using log4net; | 32 | using System.Net; |
30 | using OpenSim.Data; | 33 | using System.Text; |
34 | |||
35 | using OpenSim.Server.Base; | ||
36 | using OpenSim.Server.Handlers.Base; | ||
37 | using OpenSim.Services.Interfaces; | ||
38 | using GridRegion = OpenSim.Services.Interfaces.GridRegion; | ||
31 | using OpenSim.Framework; | 39 | using OpenSim.Framework; |
32 | using OpenSim.Framework.Communications; | ||
33 | using OpenSim.Framework.Communications.Cache; | ||
34 | using OpenSim.Framework.Servers; | ||
35 | using OpenSim.Framework.Servers.HttpServer; | 40 | using OpenSim.Framework.Servers.HttpServer; |
36 | using OpenSim.Region.Communications.OGS1; | 41 | using OpenSim.Server.Handlers.Simulation; |
37 | using OpenSim.Region.Framework.Scenes; | 42 | using Utils = OpenSim.Server.Handlers.Simulation.Utils; |
43 | |||
44 | using OpenMetaverse; | ||
45 | using OpenMetaverse.StructuredData; | ||
46 | using Nini.Config; | ||
47 | using log4net; | ||
48 | |||
38 | 49 | ||
39 | namespace OpenSim.Region.Communications.Hypergrid | 50 | namespace 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 | } |