aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Examples/SimpleApp/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Examples/SimpleApp/Program.cs')
-rw-r--r--OpenSim/Examples/SimpleApp/Program.cs18
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;
2using System.Collections.Generic; 2using System.Collections.Generic;
3using System.Text; 3using System.Text;
4using OpenSim; 4using OpenSim;
5using OpenSim.Servers;
6using OpenSim.GridInterfaces.Local; 5using OpenSim.GridInterfaces.Local;
7using OpenSim.Framework.Interfaces; 6using OpenSim.Framework.Interfaces;
8using OpenSim.Framework.Types; 7using OpenSim.Framework.Types;
9using OpenSim.UserServer;
10using OpenSim.Framework.Console; 8using OpenSim.Framework.Console;
11using OpenSim.world; 9using OpenSim.world;
12using OpenSim.Physics.Manager;
13using OpenSim.Assets; 10using OpenSim.Assets;
14using libsecondlife; 11using libsecondlife;
12using OpenSim.UserServer;
13using OpenSim.Servers;
14using OpenSim.Framework;
15using OpenSim.Caches;
15 16
16namespace SimpleApp 17namespace 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