diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Examples/SimpleApp/Program.cs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/OpenSim/Examples/SimpleApp/Program.cs b/OpenSim/Examples/SimpleApp/Program.cs index e44bdba..b3b04ab 100644 --- a/OpenSim/Examples/SimpleApp/Program.cs +++ b/OpenSim/Examples/SimpleApp/Program.cs | |||
@@ -2,16 +2,17 @@ using System; | |||
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Text; | 3 | using System.Text; |
4 | using OpenSim; | 4 | using OpenSim; |
5 | using OpenSim.Servers; | ||
6 | using OpenSim.GridInterfaces.Local; | 5 | using OpenSim.GridInterfaces.Local; |
7 | using OpenSim.Framework.Interfaces; | 6 | using OpenSim.Framework.Interfaces; |
8 | using OpenSim.Framework.Types; | 7 | using OpenSim.Framework.Types; |
9 | using OpenSim.UserServer; | ||
10 | using OpenSim.Framework.Console; | 8 | using OpenSim.Framework.Console; |
11 | using OpenSim.world; | 9 | using OpenSim.world; |
12 | using OpenSim.Physics.Manager; | ||
13 | using OpenSim.Assets; | 10 | using OpenSim.Assets; |
14 | using libsecondlife; | 11 | using libsecondlife; |
12 | using OpenSim.UserServer; | ||
13 | using OpenSim.Servers; | ||
14 | using OpenSim.Framework; | ||
15 | using OpenSim.Caches; | ||
15 | 16 | ||
16 | namespace SimpleApp | 17 | namespace SimpleApp |
17 | { | 18 | { |
@@ -32,9 +33,9 @@ namespace SimpleApp | |||
32 | 33 | ||
33 | LoginServer loginServer = new LoginServer( simAddr, simPort, 0, 0, false ); | 34 | LoginServer loginServer = new LoginServer( simAddr, simPort, 0, 0, false ); |
34 | loginServer.Startup(); | 35 | loginServer.Startup(); |
35 | 36 | loginServer.SetSessionHandler( AddNewSessionHandler ); | |
36 | AuthenticateSessionsLocal localSessions = new AuthenticateSessionsLocal(); | 37 | |
37 | loginServer.SetSessionHandler(localSessions.AddNewSessionHandler ); | 38 | AuthenticateSessionsBase localSessions = new AuthenticateSessionsBase(); |
38 | 39 | ||
39 | InventoryCache inventoryCache = new InventoryCache(); | 40 | InventoryCache inventoryCache = new InventoryCache(); |
40 | 41 | ||
@@ -67,9 +68,10 @@ namespace SimpleApp | |||
67 | m_console.ReadLine(); | 68 | m_console.ReadLine(); |
68 | } | 69 | } |
69 | 70 | ||
70 | private void AddNewSessionHandler(Login loginData) | 71 | private bool AddNewSessionHandler(ulong regionHandle, Login loginData) |
71 | { | 72 | { |
72 | m_console.WriteLine( LogPriority.NORMAL, "Recieved Login from [{0}] [{1}]", loginData.First, loginData.Last ); | 73 | m_console.WriteLine( LogPriority.NORMAL, "Region [{0}] recieved Login from [{1}] [{2}]", regionHandle, loginData.First, loginData.Last ); |
74 | return true; | ||
73 | } | 75 | } |
74 | 76 | ||
75 | #region IAssetReceiver Members | 77 | #region IAssetReceiver Members |