aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer/UDPServer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim.RegionServer/UDPServer.cs')
-rw-r--r--OpenSim.RegionServer/UDPServer.cs9
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
25namespace OpenSim 25namespace 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