diff options
author | Adam Frisby | 2007-06-05 13:18:44 +0000 |
---|---|---|
committer | Adam Frisby | 2007-06-05 13:18:44 +0000 |
commit | 75f9b25b41b5a80025e17808b5b2d9fe7295d54e (patch) | |
tree | cd96e948447cc9a030c7ce537d25da06ea40db5e /OpenGridServices.InventoryServer/Main.cs | |
parent | * "We are" message is now a status text message. (diff) | |
download | opensim-SC_OLD-75f9b25b41b5a80025e17808b5b2d9fe7295d54e.zip opensim-SC_OLD-75f9b25b41b5a80025e17808b5b2d9fe7295d54e.tar.gz opensim-SC_OLD-75f9b25b41b5a80025e17808b5b2d9fe7295d54e.tar.bz2 opensim-SC_OLD-75f9b25b41b5a80025e17808b5b2d9fe7295d54e.tar.xz |
* Fixed OGS build
* Converted to new console interfaces
* Fixed other minor issues which somehow snuck in
Diffstat (limited to '')
-rw-r--r-- | OpenGridServices.InventoryServer/Main.cs | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/OpenGridServices.InventoryServer/Main.cs b/OpenGridServices.InventoryServer/Main.cs deleted file mode 100644 index 727b28d..0000000 --- a/OpenGridServices.InventoryServer/Main.cs +++ /dev/null | |||
@@ -1,61 +0,0 @@ | |||
1 | |||
2 | using System; | ||
3 | using System.Collections; | ||
4 | using System.Collections.Generic; | ||
5 | using System.Reflection; | ||
6 | using System.IO; | ||
7 | using System.Text; | ||
8 | using libsecondlife; | ||
9 | using OpenSim.Framework.User; | ||
10 | using OpenSim.Framework.Sims; | ||
11 | using OpenSim.Framework.Inventory; | ||
12 | using OpenSim.Framework.Interfaces; | ||
13 | using OpenSim.Framework.Console; | ||
14 | using OpenSim.Servers; | ||
15 | using OpenSim.Framework.Utilities; | ||
16 | |||
17 | namespace OpenGridServices.InventoryServer | ||
18 | { | ||
19 | public class OpenInventory_Main : BaseServer, conscmd_callback | ||
20 | { | ||
21 | ConsoleBase m_console; | ||
22 | InventoryManager m_inventoryManager; | ||
23 | |||
24 | public static void Main(string[] args) | ||
25 | { | ||
26 | } | ||
27 | |||
28 | public OpenInventory_Main() | ||
29 | { | ||
30 | m_console = new ConsoleBase("opengrid-inventory-console.log", "OpenInventory", this, false); | ||
31 | MainConsole.Instance = m_console; | ||
32 | } | ||
33 | |||
34 | public void Startup() | ||
35 | { | ||
36 | MainConsole.Instance.WriteLine("Initialising inventory manager..."); | ||
37 | m_inventoryManager = new InventoryManager(); | ||
38 | |||
39 | MainConsole.Instance.WriteLine("Starting HTTP server"); | ||
40 | BaseHttpServer httpServer = new BaseHttpServer(8004); | ||
41 | |||
42 | httpServer.AddXmlRPCHandler("rootfolders", m_inventoryManager.XmlRpcInventoryRequest); | ||
43 | //httpServer.AddRestHandler("GET","/rootfolders/",Rest | ||
44 | } | ||
45 | |||
46 | public void RunCmd(string cmd, string[] cmdparams) | ||
47 | { | ||
48 | switch (cmd) | ||
49 | { | ||
50 | case "shutdown": | ||
51 | m_console.Close(); | ||
52 | Environment.Exit(0); | ||
53 | break; | ||
54 | } | ||
55 | } | ||
56 | |||
57 | public void Show(string ShowWhat) | ||
58 | { | ||
59 | } | ||
60 | } | ||
61 | } | ||