aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Examples/SimpleApp2/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Examples/SimpleApp2/Program.cs12
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;
9using OpenSim.UserServer; 9using OpenSim.UserServer;
10using OpenSim.Framework.Console; 10using OpenSim.Framework.Console;
11using OpenSim.world; 11using OpenSim.world;
12using OpenSim.Physics.Manager;
13using OpenSim.Assets; 12using OpenSim.Assets;
14using libsecondlife; 13using libsecondlife;
14using OpenSim.Framework;
15using OpenSim.Caches;
15 16
16namespace SimpleApp2 17namespace 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)