diff options
author | MW | 2007-05-16 15:46:22 +0000 |
---|---|---|
committer | MW | 2007-05-16 15:46:22 +0000 |
commit | 3f39648605a432aae6a8c9ff9fb5ee481b06035e (patch) | |
tree | 52c5fab963a15b5a82b66a8617f2692b8d67674f /OpenSim.RegionServer/UDPServer.cs | |
parent | * deleted some user files (diff) | |
download | opensim-SC-3f39648605a432aae6a8c9ff9fb5ee481b06035e.zip opensim-SC-3f39648605a432aae6a8c9ff9fb5ee481b06035e.tar.gz opensim-SC-3f39648605a432aae6a8c9ff9fb5ee481b06035e.tar.bz2 opensim-SC-3f39648605a432aae6a8c9ff9fb5ee481b06035e.tar.xz |
More refactoring.
Changed AuthenticateSession handling, now calls a method in UDPServer. (but is likely to change again soon)
Diffstat (limited to '')
-rw-r--r-- | OpenSim.RegionServer/UDPServer.cs | 9 |
1 files changed, 9 insertions, 0 deletions
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; | |||
24 | 24 | ||
25 | namespace OpenSim | 25 | namespace OpenSim |
26 | { | 26 | { |
27 | public delegate AuthenticateResponse AuthenticateSessionHandler(LLUUID sessionID, LLUUID agentID, uint circuitCode); | ||
28 | |||
27 | public class UDPServer : OpenSimNetworkHandler | 29 | public class UDPServer : OpenSimNetworkHandler |
28 | { | 30 | { |
29 | private Dictionary<EndPoint, uint> clientCircuits = new Dictionary<EndPoint, uint>(); | 31 | private Dictionary<EndPoint, uint> clientCircuits = new Dictionary<EndPoint, uint>(); |
@@ -45,6 +47,7 @@ namespace OpenSim | |||
45 | private bool m_sandbox = false; | 47 | private bool m_sandbox = false; |
46 | private bool user_accounts = false; | 48 | private bool user_accounts = false; |
47 | private ConsoleBase m_console; | 49 | private ConsoleBase m_console; |
50 | public AuthenticateSessionHandler AuthenticateHandler; | ||
48 | 51 | ||
49 | public PacketServer PacketServer | 52 | public PacketServer PacketServer |
50 | { | 53 | { |
@@ -78,6 +81,7 @@ namespace OpenSim | |||
78 | this.user_accounts = accounts; | 81 | this.user_accounts = accounts; |
79 | this.m_console = console; | 82 | this.m_console = console; |
80 | PacketServer packetServer = new PacketServer(this); | 83 | PacketServer packetServer = new PacketServer(this); |
84 | this.AuthenticateHandler = new AuthenticateSessionHandler(this.m_gridServers.GridServer.AuthenticateSession); | ||
81 | } | 85 | } |
82 | 86 | ||
83 | protected virtual void OnReceivedData(IAsyncResult result) | 87 | protected virtual void OnReceivedData(IAsyncResult result) |
@@ -178,5 +182,10 @@ namespace OpenSim | |||
178 | } | 182 | } |
179 | } | 183 | } |
180 | } | 184 | } |
185 | |||
186 | public virtual AuthenticateResponse AuthenticateSession(LLUUID sessionID, LLUUID agentID, uint circuitCode) | ||
187 | { | ||
188 | return this.AuthenticateHandler(sessionID, agentID, circuitCode); | ||
189 | } | ||
181 | } | 190 | } |
182 | } \ No newline at end of file | 191 | } \ No newline at end of file |