aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ExportBot/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ExportBot/Program.cs')
-rw-r--r--ExportBot/Program.cs28
1 files changed, 21 insertions, 7 deletions
diff --git a/ExportBot/Program.cs b/ExportBot/Program.cs
index 705cf90..8855be1 100644
--- a/ExportBot/Program.cs
+++ b/ExportBot/Program.cs
@@ -1,21 +1,28 @@
1using System; 1using System;
2using System.Collections.Generic; 2using System.Collections.Generic;
3using System.IO; 3using System.IO;
4using System.Threading;
4using CommandLine.Utility; 5using CommandLine.Utility;
6using OpenSim.Framework;
7using OpenSim.Framework.Console;
8using OpenSim.Servers;
5 9
6namespace libsecondlife.TestClient 10namespace libsecondlife.TestClient
7{ 11{
8 public class Program 12 public class Program : conscmd_callback
9 { 13 {
10 private static void Usage() 14 private static void Usage()
11 { 15 {
12 Console.WriteLine("Usage: " + Environment.NewLine +
13 "TestClient.exe --first firstname --last lastname --pass password --contact \"youremail\" [--startpos \"sim/x/y/z\"] [--master \"master name\"] [--masterkey \"master uuid\"]" +
14 Environment.NewLine + "TestClient.exe --file filename --contact \"youremail\" [--master \"master name\"] [--masterkey \"master uuid\"]");
15 } 16 }
16 17
18 public void RunCmd(string cmd, string[] cmdparams) {}
19 public void Show(string ShowWhat) {}
20
17 static void Main(string[] args) 21 static void Main(string[] args)
18 { 22 {
23 ConsoleBase m_console = new ConsoleBase("exportbot-console.log", "ExportBot", new Program() , false);
24 MainConsole.Instance = m_console;
25
19 Arguments arguments = new Arguments(args); 26 Arguments arguments = new Arguments(args);
20 27
21 ClientManager manager; 28 ClientManager manager;
@@ -115,13 +122,20 @@ namespace libsecondlife.TestClient
115 } 122 }
116 123
117 // Login the accounts and run the input loop 124 // Login the accounts and run the input loop
118 if ( arguments["start"] != null ) { 125 manager = new ClientManager(accounts, contact, "Theta/16/229/25");
126/* if ( arguments["start"] != null ) {
119 manager = new ClientManager(accounts, contact, arguments["start"]); 127 manager = new ClientManager(accounts, contact, arguments["start"]);
120 } else { 128 } else {
121 manager = new ClientManager(accounts, contact); 129 manager = new ClientManager(accounts, contact);
122 } 130 }*/
131
132 Console.WriteLine("Starting the HTTP listener");
133 BaseHttpServer httpServer = new BaseHttpServer(12035);
134 httpServer.AddRestHandler("GET", "/exportaccount/", manager.ExportAvatarRestMethod);
135 httpServer.Start();
136
123 manager.Run(); 137 manager.Run();
124 138
125 } 139 }
126 } 140 }
127} 141}