diff options
author | lbsa71 | 2007-03-27 08:10:15 +0000 |
---|---|---|
committer | lbsa71 | 2007-03-27 08:10:15 +0000 |
commit | a4fc6b5fbba7fd9a7b147b11a0d1c3ded1834d54 (patch) | |
tree | 560961306b9d80636d8ec976c05fcb8b54304f33 /OpenGridServices.UserServer/UserHttp.cs | |
parent | Heightfield needs fixing, or i'll re-implement it (probably actually the coll... (diff) | |
download | opensim-SC-a4fc6b5fbba7fd9a7b147b11a0d1c3ded1834d54.zip opensim-SC-a4fc6b5fbba7fd9a7b147b11a0d1c3ded1834d54.tar.gz opensim-SC-a4fc6b5fbba7fd9a7b147b11a0d1c3ded1834d54.tar.bz2 opensim-SC-a4fc6b5fbba7fd9a7b147b11a0d1c3ded1834d54.tar.xz |
* Now there's one Console class, and instead the apps responds to cmd's and show's
* Removed Golden Future TCP/SimChat options
* Moved Ode.NET.dll to bin and changed prebuild accordingly (due to Prebuild limitations)
* Normalized some namespaces
* Added FxCop project
* Added (temp disabled) Servers project (for great justice)
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 ""; |