public CapsServer(IPAddress address, int port, X509Certificate sslCertificate, X509Certificate rootCA, bool requireClientCertificate) { serverOwned = true; capsHandler = BuildCapsHandler("^/"); server = new WebServer(address, port, sslCertificate, rootCA, requireClientCertificate); server.LogWriter = new log4netLogWriter(Logger.Log); }
public CapsServer(IPAddress address, int port) { serverOwned = true; capsHandler = BuildCapsHandler("^/"); server = new WebServer(address, port); server.LogWriter = new log4netLogWriter(Logger.Log); }
public CapsServer(WebServer httpServer, string handlerPath) { serverOwned = false; capsHandler = BuildCapsHandler(handlerPath); server = httpServer; }
public EventQueueServer(WebServer server) { this.server = server; }
void InitHttpServer(int port, bool ssl) { HttpServer = new WebServer(IPAddress.Any, port); // Login webpage HEAD request, used to check if the login webpage is alive HttpServer.AddHandler("head", null, "^/$", LoginWebpageHeadHandler); // Login webpage GET request, gets the login webpage data (purely aesthetic) HttpServer.AddHandler("get", null, @"^/(\?.*)?$", LoginWebpageGetHandler); // Client XML-RPC login HttpServer.AddHandler("post", "text/xml", "^/$", LoginXmlRpcPostHandler); // Client LLSD login HttpServer.AddHandler("post", "application/xml", "^/$", LoginLLSDPostHandler); HttpServer.Start(); }