aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/RegionApplicationBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/RegionApplicationBase.cs')
-rw-r--r--OpenSim/Region/ClientStack/RegionApplicationBase.cs129
1 files changed, 129 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/RegionApplicationBase.cs b/OpenSim/Region/ClientStack/RegionApplicationBase.cs
new file mode 100644
index 0000000..b421fbd
--- /dev/null
+++ b/OpenSim/Region/ClientStack/RegionApplicationBase.cs
@@ -0,0 +1,129 @@
1/*
2* Copyright (c) Contributors, http://www.openmetaverse.org/
3* See CONTRIBUTORS.TXT for a full list of copyright holders.
4*
5* Redistribution and use in source and binary forms, with or without
6* modification, are permitted provided that the following conditions are met:
7* * Redistributions of source code must retain the above copyright
8* notice, this list of conditions and the following disclaimer.
9* * Redistributions in binary form must reproduce the above copyright
10* notice, this list of conditions and the following disclaimer in the
11* documentation and/or other materials provided with the distribution.
12* * Neither the name of the OpenSim Project nor the
13* names of its contributors may be used to endorse or promote products
14* derived from this software without specific prior written permission.
15*
16* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS AND ANY
17* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*
27*/
28using System;
29using System.Text;
30using System.IO;
31using System.Threading;
32using System.Net;
33using System.Net.Sockets;
34using System.Timers;
35using System.Reflection;
36using System.Collections;
37using System.Collections.Generic;
38using libsecondlife;
39using libsecondlife.Packets;
40using OpenSim.Terrain;
41using OpenSim.Framework.Interfaces;
42using OpenSim.Framework.Types;
43using OpenSim.Framework;
44using OpenSim.Assets;
45using OpenSim.Caches;
46using OpenSim.Framework.Console;
47using OpenSim.Physics.Manager;
48using Nwc.XmlRpc;
49using OpenSim.Framework.Servers;
50using OpenSim.Framework.GenericConfig;
51
52namespace OpenSim
53{
54 public class RegionApplicationBase
55 {
56 protected IGenericConfig localConfig;
57 protected PhysicsManager physManager;
58 protected AssetCache AssetCache;
59 protected InventoryCache InventoryCache;
60 protected Dictionary<EndPoint, uint> clientCircuits = new Dictionary<EndPoint, uint>();
61 protected DateTime startuptime;
62 protected NetworkServersInfo serversData;
63
64 public string m_physicsEngine;
65 public bool m_sandbox = false;
66 public bool m_loginserver;
67 public bool user_accounts = false;
68 public bool gridLocalAsset = false;
69 protected bool configFileSetup = false;
70 public string m_config;
71
72 protected List<UDPServer> m_udpServer = new List<UDPServer>();
73 protected List<RegionInfo> regionData = new List<RegionInfo>();
74 protected List<IWorld> m_localWorld = new List<IWorld>();
75 protected BaseHttpServer httpServer;
76 protected List<AuthenticateSessionsBase> AuthenticateSessionsHandler = new List<AuthenticateSessionsBase>();
77
78 protected LogBase m_log;
79
80 public RegionApplicationBase()
81 {
82
83 }
84
85 public RegionApplicationBase(bool sandBoxMode, bool startLoginServer, string physicsEngine, bool useConfigFile, bool silent, string configFile)
86 {
87 this.configFileSetup = useConfigFile;
88 m_sandbox = sandBoxMode;
89 m_loginserver = startLoginServer;
90 m_physicsEngine = physicsEngine;
91 m_config = configFile;
92 }
93
94 /*protected World m_localWorld;
95 public World LocalWorld
96 {
97 get { return m_localWorld; }
98 }*/
99
100 /// <summary>
101 /// Performs initialisation of the world, such as loading configuration from disk.
102 /// </summary>
103 public virtual void StartUp()
104 {
105 }
106
107 protected virtual void SetupLocalGridServers()
108 {
109 }
110
111 protected virtual void SetupRemoteGridServers()
112 {
113
114 }
115
116 protected virtual void SetupWorld()
117 {
118 }
119
120 protected virtual void SetupHttpListener()
121 {
122 }
123
124 protected virtual void ConnectToRemoteGridServer()
125 {
126
127 }
128 }
129}