diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Examples/SimpleApp2/Program.cs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/OpenSim/Examples/SimpleApp2/Program.cs b/OpenSim/Examples/SimpleApp2/Program.cs index 9b977f6..34ede1b 100644 --- a/OpenSim/Examples/SimpleApp2/Program.cs +++ b/OpenSim/Examples/SimpleApp2/Program.cs | |||
@@ -9,9 +9,10 @@ using OpenSim.Framework.Types; | |||
9 | using OpenSim.UserServer; | 9 | using OpenSim.UserServer; |
10 | using OpenSim.Framework.Console; | 10 | using OpenSim.Framework.Console; |
11 | using OpenSim.world; | 11 | using OpenSim.world; |
12 | using OpenSim.Physics.Manager; | ||
13 | using OpenSim.Assets; | 12 | using OpenSim.Assets; |
14 | using libsecondlife; | 13 | using libsecondlife; |
14 | using OpenSim.Framework; | ||
15 | using OpenSim.Caches; | ||
15 | 16 | ||
16 | namespace SimpleApp2 | 17 | namespace SimpleApp2 |
17 | { | 18 | { |
@@ -37,8 +38,8 @@ namespace SimpleApp2 | |||
37 | LoginServer loginServer = new LoginServer(simAddr, simPort, 0, 0, false); | 38 | LoginServer loginServer = new LoginServer(simAddr, simPort, 0, 0, false); |
38 | loginServer.Startup(); | 39 | loginServer.Startup(); |
39 | 40 | ||
40 | AuthenticateSessionsLocal localSessions = new AuthenticateSessionsLocal(); | 41 | AuthenticateSessionsBase localSessions = new AuthenticateSessionsBase(); |
41 | loginServer.SetSessionHandler(localSessions.AddNewSessionHandler); | 42 | loginServer.SetSessionHandler( AddNewSessionHandler ); |
42 | 43 | ||
43 | InventoryCache inventoryCache = new InventoryCache(); | 44 | InventoryCache inventoryCache = new InventoryCache(); |
44 | 45 | ||
@@ -86,9 +87,10 @@ namespace SimpleApp2 | |||
86 | return map; | 87 | return map; |
87 | } | 88 | } |
88 | 89 | ||
89 | private void AddNewSessionHandler(Login loginData) | 90 | private bool AddNewSessionHandler(ulong regionHandle, Login loginData) |
90 | { | 91 | { |
91 | m_console.WriteLine(LogPriority.NORMAL, "Recieved Login from [{0}] [{1}]", loginData.First, loginData.Last); | 92 | m_console.WriteLine(LogPriority.NORMAL, "Region [{0}] recieved Login from [{1}] [{2}]", regionHandle, loginData.First, loginData.Last); |
93 | return true; | ||
92 | } | 94 | } |
93 | 95 | ||
94 | static void Main(string[] args) | 96 | static void Main(string[] args) |