From 3f39648605a432aae6a8c9ff9fb5ee481b06035e Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 16 May 2007 15:46:22 +0000 Subject: More refactoring. Changed AuthenticateSession handling, now calls a method in UDPServer. (but is likely to change again soon) --- OpenSim.RegionServer/UDPServer.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'OpenSim.RegionServer/UDPServer.cs') diff --git a/OpenSim.RegionServer/UDPServer.cs b/OpenSim.RegionServer/UDPServer.cs index 89c4f67..12f35ab 100644 --- a/OpenSim.RegionServer/UDPServer.cs +++ b/OpenSim.RegionServer/UDPServer.cs @@ -24,6 +24,8 @@ using OpenSim.GenericConfig; namespace OpenSim { + public delegate AuthenticateResponse AuthenticateSessionHandler(LLUUID sessionID, LLUUID agentID, uint circuitCode); + public class UDPServer : OpenSimNetworkHandler { private Dictionary clientCircuits = new Dictionary(); @@ -45,6 +47,7 @@ namespace OpenSim private bool m_sandbox = false; private bool user_accounts = false; private ConsoleBase m_console; + public AuthenticateSessionHandler AuthenticateHandler; public PacketServer PacketServer { @@ -78,6 +81,7 @@ namespace OpenSim this.user_accounts = accounts; this.m_console = console; PacketServer packetServer = new PacketServer(this); + this.AuthenticateHandler = new AuthenticateSessionHandler(this.m_gridServers.GridServer.AuthenticateSession); } protected virtual void OnReceivedData(IAsyncResult result) @@ -178,5 +182,10 @@ namespace OpenSim } } } + + public virtual AuthenticateResponse AuthenticateSession(LLUUID sessionID, LLUUID agentID, uint circuitCode) + { + return this.AuthenticateHandler(sessionID, agentID, circuitCode); + } } } \ No newline at end of file -- cgit v1.1