aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGridServices/OpenGridServices.InventoryServer/Main.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-06-05 20:22:10 +0000
committerAdam Frisby2007-06-05 20:22:10 +0000
commit65268a51ca094cd4510f5e30d0f15602bff1e4ee (patch)
tree7871474d60e03cc64c4033e2b46f983a5e362bbc /OpenGridServices/OpenGridServices.InventoryServer/Main.cs
parent* Fixed OGS build (diff)
downloadopensim-SC-65268a51ca094cd4510f5e30d0f15602bff1e4ee.zip
opensim-SC-65268a51ca094cd4510f5e30d0f15602bff1e4ee.tar.gz
opensim-SC-65268a51ca094cd4510f5e30d0f15602bff1e4ee.tar.bz2
opensim-SC-65268a51ca094cd4510f5e30d0f15602bff1e4ee.tar.xz
* Weird didnt commit inventory before
Diffstat (limited to 'OpenGridServices/OpenGridServices.InventoryServer/Main.cs')
-rw-r--r--OpenGridServices/OpenGridServices.InventoryServer/Main.cs61
1 files changed, 61 insertions, 0 deletions
diff --git a/OpenGridServices/OpenGridServices.InventoryServer/Main.cs b/OpenGridServices/OpenGridServices.InventoryServer/Main.cs
new file mode 100644
index 0000000..7bce965
--- /dev/null
+++ b/OpenGridServices/OpenGridServices.InventoryServer/Main.cs
@@ -0,0 +1,61 @@
1
2using System;
3using System.Collections;
4using System.Collections.Generic;
5using System.Reflection;
6using System.IO;
7using System.Text;
8using libsecondlife;
9using OpenSim.Framework.User;
10using OpenSim.Framework.Sims;
11using OpenSim.Framework.Inventory;
12using OpenSim.Framework.Interfaces;
13using OpenSim.Framework.Console;
14using OpenSim.Servers;
15using OpenSim.Framework.Utilities;
16
17namespace 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.Notice("Initialising inventory manager...");
37 m_inventoryManager = new InventoryManager();
38
39 MainConsole.Instance.Notice("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}