diff options
Diffstat (limited to 'OpenSim.RegionServer/UDPServer.cs')
-rw-r--r-- | OpenSim.RegionServer/UDPServer.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim.RegionServer/UDPServer.cs b/OpenSim.RegionServer/UDPServer.cs index 0fd3cdb..e4ac042 100644 --- a/OpenSim.RegionServer/UDPServer.cs +++ b/OpenSim.RegionServer/UDPServer.cs | |||
@@ -47,6 +47,8 @@ namespace OpenSim | |||
47 | private bool m_sandbox = false; | 47 | private bool m_sandbox = false; |
48 | private bool user_accounts = false; | 48 | private bool user_accounts = false; |
49 | private ConsoleBase m_console; | 49 | private ConsoleBase m_console; |
50 | private AuthenticateSessionsBase m_authenticateSessionsClass; | ||
51 | |||
50 | public AuthenticateSessionHandler AuthenticateHandler; | 52 | public AuthenticateSessionHandler AuthenticateHandler; |
51 | 53 | ||
52 | public PacketServer PacketServer | 54 | public PacketServer PacketServer |
@@ -70,7 +72,7 @@ namespace OpenSim | |||
70 | } | 72 | } |
71 | } | 73 | } |
72 | 74 | ||
73 | public UDPServer(int port, Grid gridServers, AssetCache assetCache, InventoryCache inventoryCache, RegionInfo _regionData, bool sandbox, bool accounts, ConsoleBase console) | 75 | public UDPServer(int port, Grid gridServers, AssetCache assetCache, InventoryCache inventoryCache, RegionInfo _regionData, bool sandbox, bool accounts, ConsoleBase console , AuthenticateSessionsBase authenticateClass) |
74 | { | 76 | { |
75 | listenPort = port; | 77 | listenPort = port; |
76 | this.m_gridServers = gridServers; | 78 | this.m_gridServers = gridServers; |
@@ -80,10 +82,11 @@ namespace OpenSim | |||
80 | this.m_sandbox = sandbox; | 82 | this.m_sandbox = sandbox; |
81 | this.user_accounts = accounts; | 83 | this.user_accounts = accounts; |
82 | this.m_console = console; | 84 | this.m_console = console; |
85 | this.m_authenticateSessionsClass = authenticateClass; | ||
83 | PacketServer packetServer = new PacketServer(this); | 86 | PacketServer packetServer = new PacketServer(this); |
84 | 87 | ||
85 | //set up delegate for authenticate sessions | 88 | //set up delegate for authenticate sessions |
86 | this.AuthenticateHandler = new AuthenticateSessionHandler(this.m_gridServers.GridServer.AuthenticateSession); | 89 | this.AuthenticateHandler = new AuthenticateSessionHandler(this.m_authenticateSessionsClass.AuthenticateSession); |
87 | } | 90 | } |
88 | 91 | ||
89 | protected virtual void OnReceivedData(IAsyncResult result) | 92 | protected virtual void OnReceivedData(IAsyncResult result) |