From 5d59ffe99d7c592d87361e3bb1b1ac152bf5980c Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Sun, 17 Jun 2007 16:49:33 +0000 Subject: * Added the two Sample Apps to the solution * Made them build * They don't work though, gotta have a look see at that later. * ignored a shitload of bins --- OpenSim/Examples/SimpleApp2/Program.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'OpenSim/Examples/SimpleApp2/Program.cs') 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; using OpenSim.UserServer; using OpenSim.Framework.Console; using OpenSim.world; -using OpenSim.Physics.Manager; using OpenSim.Assets; using libsecondlife; +using OpenSim.Framework; +using OpenSim.Caches; namespace SimpleApp2 { @@ -37,8 +38,8 @@ namespace SimpleApp2 LoginServer loginServer = new LoginServer(simAddr, simPort, 0, 0, false); loginServer.Startup(); - AuthenticateSessionsLocal localSessions = new AuthenticateSessionsLocal(); - loginServer.SetSessionHandler(localSessions.AddNewSessionHandler); + AuthenticateSessionsBase localSessions = new AuthenticateSessionsBase(); + loginServer.SetSessionHandler( AddNewSessionHandler ); InventoryCache inventoryCache = new InventoryCache(); @@ -86,9 +87,10 @@ namespace SimpleApp2 return map; } - private void AddNewSessionHandler(Login loginData) + private bool AddNewSessionHandler(ulong regionHandle, Login loginData) { - m_console.WriteLine(LogPriority.NORMAL, "Recieved Login from [{0}] [{1}]", loginData.First, loginData.Last); + m_console.WriteLine(LogPriority.NORMAL, "Region [{0}] recieved Login from [{1}] [{2}]", regionHandle, loginData.First, loginData.Last); + return true; } static void Main(string[] args) -- cgit v1.1