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/SimpleApp/Program.cs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'OpenSim/Examples/SimpleApp/Program.cs') 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; using System.Collections.Generic; using System.Text; using OpenSim; -using OpenSim.Servers; using OpenSim.GridInterfaces.Local; using OpenSim.Framework.Interfaces; 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.UserServer; +using OpenSim.Servers; +using OpenSim.Framework; +using OpenSim.Caches; namespace SimpleApp { @@ -32,9 +33,9 @@ namespace SimpleApp LoginServer loginServer = new LoginServer( simAddr, simPort, 0, 0, false ); loginServer.Startup(); - - AuthenticateSessionsLocal localSessions = new AuthenticateSessionsLocal(); - loginServer.SetSessionHandler(localSessions.AddNewSessionHandler ); + loginServer.SetSessionHandler( AddNewSessionHandler ); + + AuthenticateSessionsBase localSessions = new AuthenticateSessionsBase(); InventoryCache inventoryCache = new InventoryCache(); @@ -67,9 +68,10 @@ namespace SimpleApp m_console.ReadLine(); } - 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; } #region IAssetReceiver Members -- cgit v1.1