diff options
author | Justin Clark-Casey (justincc) | 2011-01-21 22:48:04 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-01-21 22:48:04 +0000 |
commit | 6ef7ea454c966b5eee2702a5fcbf9f48f85db48d (patch) | |
tree | 462d48e384ff28968fc7b02b514530898f3b1860 /OpenSim/Client | |
parent | properly format "show throttles" table (diff) | |
download | opensim-SC-6ef7ea454c966b5eee2702a5fcbf9f48f85db48d.zip opensim-SC-6ef7ea454c966b5eee2702a5fcbf9f48f85db48d.tar.gz opensim-SC-6ef7ea454c966b5eee2702a5fcbf9f48f85db48d.tar.bz2 opensim-SC-6ef7ea454c966b5eee2702a5fcbf9f48f85db48d.tar.xz |
Remove old 2 year unused linden stack region module shell
Diffstat (limited to 'OpenSim/Client')
-rw-r--r-- | OpenSim/Client/Linden/LLClientStackModule.cs | 136 | ||||
-rw-r--r-- | OpenSim/Client/Linden/Resources/LindenModules.addin.xml | 13 |
2 files changed, 0 insertions, 149 deletions
diff --git a/OpenSim/Client/Linden/LLClientStackModule.cs b/OpenSim/Client/Linden/LLClientStackModule.cs deleted file mode 100644 index f882d5d..0000000 --- a/OpenSim/Client/Linden/LLClientStackModule.cs +++ /dev/null | |||
@@ -1,136 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://opensimulator.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 OpenSimulator 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 | |||
28 | using System; | ||
29 | using System.Collections.Generic; | ||
30 | using System.Net; | ||
31 | using System.Reflection; | ||
32 | using System.Text; | ||
33 | using log4net; | ||
34 | using Nini.Config; | ||
35 | using OpenMetaverse; | ||
36 | using OpenSim.Region.ClientStack; | ||
37 | using OpenSim.Region.ClientStack.LindenUDP; | ||
38 | using OpenSim.Framework; | ||
39 | using OpenSim.Region.Framework.Scenes; | ||
40 | using OpenSim.Region.Framework.Interfaces; | ||
41 | |||
42 | namespace OpenSim.Client.Linden | ||
43 | { | ||
44 | /// <summary> | ||
45 | /// Linden UDP Stack Region Module | ||
46 | /// </summary> | ||
47 | public class LLClientStackModule : INonSharedRegionModule | ||
48 | { | ||
49 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
50 | |||
51 | #region IRegionModule Members | ||
52 | |||
53 | /// <summary> | ||
54 | /// Scene that contains the region's data | ||
55 | /// </summary> | ||
56 | protected Scene m_scene; | ||
57 | protected bool m_createClientStack = false; | ||
58 | protected IClientNetworkServer m_clientServer; | ||
59 | protected ClientStackManager m_clientStackManager; | ||
60 | protected IConfigSource m_source; | ||
61 | |||
62 | protected string m_clientStackDll = "OpenSim.Region.ClientStack.LindenUDP.dll"; | ||
63 | |||
64 | public void Initialise(IConfigSource source) | ||
65 | { | ||
66 | if (m_scene == null) | ||
67 | { | ||
68 | m_source = source; | ||
69 | |||
70 | IConfig startupConfig = m_source.Configs["Startup"]; | ||
71 | if (startupConfig != null) | ||
72 | { | ||
73 | m_clientStackDll = startupConfig.GetString("clientstack_plugin", "OpenSim.Region.ClientStack.LindenUDP.dll"); | ||
74 | } | ||
75 | } | ||
76 | } | ||
77 | |||
78 | public void AddRegion(Scene scene) | ||
79 | { | ||
80 | |||
81 | } | ||
82 | |||
83 | public void RemoveRegion(Scene scene) | ||
84 | { | ||
85 | |||
86 | } | ||
87 | |||
88 | public void RegionLoaded(Scene scene) | ||
89 | { | ||
90 | if (m_scene == null) | ||
91 | { | ||
92 | m_scene = scene; | ||
93 | } | ||
94 | |||
95 | if ((m_scene != null) && (m_createClientStack)) | ||
96 | { | ||
97 | m_log.Info("[LLClientStackModule] Starting up LLClientStack."); | ||
98 | IPEndPoint endPoint = m_scene.RegionInfo.InternalEndPoint; | ||
99 | |||
100 | uint port = (uint)endPoint.Port; | ||
101 | m_clientStackManager = new ClientStackManager(m_clientStackDll); | ||
102 | |||
103 | m_clientServer | ||
104 | = m_clientStackManager.CreateServer(endPoint.Address, | ||
105 | ref port, m_scene.RegionInfo.ProxyOffset, m_scene.RegionInfo.m_allow_alternate_ports, m_source, | ||
106 | m_scene.AuthenticateHandler); | ||
107 | |||
108 | m_clientServer.AddScene(m_scene); | ||
109 | |||
110 | m_clientServer.Start(); | ||
111 | } | ||
112 | } | ||
113 | |||
114 | public void Close() | ||
115 | { | ||
116 | |||
117 | } | ||
118 | |||
119 | public Type ReplaceableInterface | ||
120 | { | ||
121 | get { return null; } | ||
122 | } | ||
123 | |||
124 | public string Name | ||
125 | { | ||
126 | get { return "LLClientStackModule"; } | ||
127 | } | ||
128 | |||
129 | public bool IsSharedModule | ||
130 | { | ||
131 | get { return false; } | ||
132 | } | ||
133 | |||
134 | #endregion | ||
135 | } | ||
136 | } | ||
diff --git a/OpenSim/Client/Linden/Resources/LindenModules.addin.xml b/OpenSim/Client/Linden/Resources/LindenModules.addin.xml deleted file mode 100644 index af41e98..0000000 --- a/OpenSim/Client/Linden/Resources/LindenModules.addin.xml +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | <Addin id="OpenSim.Client.Linden.LindenModules" version="0.2"> | ||
2 | <Runtime> | ||
3 | <Import assembly="OpenSim.Client.Linden.dll"/> | ||
4 | </Runtime> | ||
5 | |||
6 | <Dependencies> | ||
7 | <Addin id="OpenSim" version="0.5" /> | ||
8 | </Dependencies> | ||
9 | |||
10 | <Extension path = "/OpenSim/RegionModules"> | ||
11 | <RegionModule id="LLClientStackModule" type="OpenSim.Client.Linden.LLClientStackModule" /> | ||
12 | </Extension> | ||
13 | </Addin> | ||