diff options
Diffstat (limited to '')
-rw-r--r-- | OpenGridServices.UserServer/UserHttp.cs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/OpenGridServices.UserServer/UserHttp.cs b/OpenGridServices.UserServer/UserHttp.cs index ce3cfcd..4dc2358 100644 --- a/OpenGridServices.UserServer/UserHttp.cs +++ b/OpenGridServices.UserServer/UserHttp.cs | |||
@@ -37,25 +37,25 @@ using System.IO; | |||
37 | using System.Collections; | 37 | using System.Collections; |
38 | using System.Collections.Generic; | 38 | using System.Collections.Generic; |
39 | using libsecondlife; | 39 | using libsecondlife; |
40 | using ServerConsole; | ||
41 | using OpenSim.Framework.User; | 40 | using OpenSim.Framework.User; |
42 | using OpenSim.Framework.Sims; | 41 | using OpenSim.Framework.Sims; |
43 | using OpenSim.Framework.Inventory; | 42 | using OpenSim.Framework.Inventory; |
43 | using OpenSim.Framework.Console; | ||
44 | 44 | ||
45 | namespace OpenGridServices | 45 | namespace OpenGridServices.UserServer |
46 | { | 46 | { |
47 | public class UserHTTPServer { | 47 | public class UserHTTPServer { |
48 | public Thread HTTPD; | 48 | public Thread HTTPD; |
49 | public HttpListener Listener; | 49 | public HttpListener Listener; |
50 | 50 | ||
51 | public UserHTTPServer() { | 51 | public UserHTTPServer() { |
52 | ServerConsole.MainConsole.Instance.WriteLine("Starting up HTTP Server"); | 52 | MainConsole.Instance.WriteLine("Starting up HTTP Server"); |
53 | HTTPD = new Thread(new ThreadStart(StartHTTP)); | 53 | HTTPD = new Thread(new ThreadStart(StartHTTP)); |
54 | HTTPD.Start(); | 54 | HTTPD.Start(); |
55 | } | 55 | } |
56 | 56 | ||
57 | public void StartHTTP() { | 57 | public void StartHTTP() { |
58 | ServerConsole.MainConsole.Instance.WriteLine("UserHttp.cs:StartHTTP() - Spawned main thread OK"); | 58 | MainConsole.Instance.WriteLine("UserHttp.cs:StartHTTP() - Spawned main thread OK"); |
59 | Listener = new HttpListener(); | 59 | Listener = new HttpListener(); |
60 | 60 | ||
61 | Listener.Prefixes.Add("http://+:8002/userserver/"); | 61 | Listener.Prefixes.Add("http://+:8002/userserver/"); |
@@ -70,7 +70,7 @@ namespace OpenGridServices | |||
70 | } | 70 | } |
71 | 71 | ||
72 | static string ParseXMLRPC(string requestBody) { | 72 | static string ParseXMLRPC(string requestBody) { |
73 | return OpenGridServices.OpenUser_Main.userserver._profilemanager.ParseXMLRPC(requestBody); | 73 | return OpenUser_Main.userserver._profilemanager.ParseXMLRPC(requestBody); |
74 | } | 74 | } |
75 | 75 | ||
76 | static string ParseREST(HttpListenerRequest www_req) { | 76 | static string ParseREST(HttpListenerRequest www_req) { |
@@ -93,7 +93,6 @@ namespace OpenGridServices | |||
93 | 93 | ||
94 | } | 94 | } |
95 | return "OK"; | 95 | return "OK"; |
96 | break; | ||
97 | } | 96 | } |
98 | 97 | ||
99 | return ""; | 98 | return ""; |