OpenSim
|
Static Public Member Functions | |
static void | RegisterHttpConsoleCommands (ICommandConsole console) |
static void | AddHttpServer (BaseHttpServer server) |
Register an already started HTTP server to the collection of known servers. More... | |
static bool | RemoveHttpServer (uint port) |
Removes the http server listening on the given port. More... | |
static bool | ContainsHttpServer (uint port) |
Does this collection of servers contain one with the given port? More... | |
static IHttpServer | GetHttpServer (uint port) |
Get the default http server or an http server for a specific port. More... | |
static IHttpServer | GetHttpServer (uint port, IPAddress ipaddr) |
Get the default http server, an http server for a specific port and/or an http server bound to a specific address More... | |
Properties | |
static int | DebugLevel [get, set] |
Control the printing of certain debug messages. More... | |
static BaseHttpServer | Instance [get, set] |
Set the main HTTP server instance. More... | |
static Dictionary< uint, BaseHttpServer > | Servers [get] |
Get all the registered servers. More... | |
Definition at line 40 of file MainServer.cs.
|
inlinestatic |
Register an already started HTTP server to the collection of known servers.
server |
Definition at line 266 of file MainServer.cs.
|
inlinestatic |
Does this collection of servers contain one with the given port?
Unlike GetHttpServer, this will not instantiate a server if one does not exist on that port.
port |
Definition at line 304 of file MainServer.cs.
|
inlinestatic |
Get the default http server or an http server for a specific port.
If the requested HTTP server doesn't already exist then a new one is instantiated and started.
port | If 0 then the default HTTP server is returned. |
Definition at line 318 of file MainServer.cs.
|
inlinestatic |
Get the default http server, an http server for a specific port and/or an http server bound to a specific address
If the requested HTTP server doesn't already exist then a new one is instantiated and started.
port | If 0 then the default HTTP server is returned. |
ipaddr | A specific IP address to bind to. If null then the default IP address is used. |
Definition at line 333 of file MainServer.cs.
|
inlinestatic |
Definition at line 108 of file MainServer.cs.
|
inlinestatic |
Removes the http server listening on the given port.
It is the responsibility of the caller to do clean up.
port |
Definition at line 285 of file MainServer.cs.
|
staticgetset |
Control the printing of certain debug messages.
If DebugLevel >= 1 then short warnings are logged when receiving bad input data. If DebugLevel >= 2 then long warnings are logged when receiving bad input data. If DebugLevel >= 3 then short notices about all incoming non-poll HTTP requests are logged. If DebugLevel >= 4 then the time taken to fulfill the request is logged. If DebugLevel >= 5 then the start of the body of incoming non-poll HTTP requests will be logged. If DebugLevel >= 6 then the entire body of incoming non-poll HTTP requests will be logged.
Definition at line 59 of file MainServer.cs.
|
staticgetset |
Set the main HTTP server instance.
This will be used to register all handlers that listen to the default port.
Exception | Thrown if the HTTP server has not already been registered via AddHttpServer() |
Definition at line 83 of file MainServer.cs.
|
staticget |
Get all the registered servers.
Returns a copy of the dictionary so this can be iterated through without locking.
Definition at line 104 of file MainServer.cs.