mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
* Started on converting UserHTTPServer to BaseHttpServer
* Added a 'param' param to the RestMethod * Added RestHandlerEntry to store more info about the 'rest' handler
This commit is contained in:
@@ -49,12 +49,17 @@ namespace OpenGridServices.GridServer
|
||||
public HttpListener Listener;
|
||||
|
||||
public GridHTTPServer() : base( 8001 ) {
|
||||
MainConsole.Instance.WriteLine("Starting up HTTP Server");
|
||||
HTTPD = new Thread(new ThreadStart(StartHTTP));
|
||||
HTTPD.Start();
|
||||
Start();
|
||||
}
|
||||
|
||||
public void StartHTTP() {
|
||||
public void Start()
|
||||
{
|
||||
MainConsole.Instance.WriteLine("Starting up HTTP Server");
|
||||
HTTPD = new Thread(new ThreadStart(StartHTTP));
|
||||
HTTPD.Start();
|
||||
}
|
||||
|
||||
public void StartHTTP() {
|
||||
MainConsole.Instance.WriteLine("GridHttp.cs:StartHTTP() - Spawned main thread OK");
|
||||
Listener = new HttpListener();
|
||||
|
||||
|
||||
@@ -105,6 +105,7 @@ namespace OpenGridServices.GridServer
|
||||
|
||||
m_console.WriteLine("Main.cs:Startup() - Starting HTTP process");
|
||||
_httpd = new GridHTTPServer();
|
||||
_httpd.Start();
|
||||
|
||||
m_console.WriteLine("Main.cs:Startup() - Starting sim status checker");
|
||||
SimCheckTimer = new Timer();
|
||||
|
||||
Reference in New Issue
Block a user