aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Examples/SimpleApp/Program.cs
diff options
context:
space:
mode:
authorlbsa712007-06-17 16:49:33 +0000
committerlbsa712007-06-17 16:49:33 +0000
commit5d59ffe99d7c592d87361e3bb1b1ac152bf5980c (patch)
treec25b0b3e24b13597b3675ce09b3206cf07feef85 /OpenSim/Examples/SimpleApp/Program.cs
parentVery Preliminary local teleporting added (currently only can teleport within... (diff)
downloadopensim-SC_OLD-5d59ffe99d7c592d87361e3bb1b1ac152bf5980c.zip
opensim-SC_OLD-5d59ffe99d7c592d87361e3bb1b1ac152bf5980c.tar.gz
opensim-SC_OLD-5d59ffe99d7c592d87361e3bb1b1ac152bf5980c.tar.bz2
opensim-SC_OLD-5d59ffe99d7c592d87361e3bb1b1ac152bf5980c.tar.xz
* 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
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