Commit 9280c5dc authored by jan.koester's avatar jan.koester
Browse files

fxied

parent 4fb319c4
Loading
Loading
Loading
Loading
+4 −4
Changes for src/httpd.cpp: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -125,12 +125,12 @@ libhttppp::HttpD::HttpD(int argc, char** argv) {
    _ServerSocket = nullptr;
    /*Register Parameters*/
    cmdplus::CmdController &HTTPDCmdController = cmdplus::CmdController::getInstance();
    HTTPDCmdController.registerCmd("help", 'h', false, (const char*) nullptr, "Helpmenu");
    HTTPDCmdController.registerCmd("httpaddr",'a', true,(const char*) nullptr,"Address to listen");
    HTTPDCmdController.registerCmd("help", 'h', false,"", "Helpmenu");
    HTTPDCmdController.registerCmd("httpaddr",'a', true,"","Address to listen");
    HTTPDCmdController.registerCmd("httpport", 'p', false, 8080, "Port to listen");
    HTTPDCmdController.registerCmd("maxconnections", 'm',false, MAXDEFAULTCONN, "Max connections that can connect");
    HTTPDCmdController.registerCmd("httpscert", 'c',false,(const char*) nullptr, "HTTPS Certfile");
    HTTPDCmdController.registerCmd("httpskey", 'k',false, (const char*) nullptr, "HTTPS Keyfile");
    HTTPDCmdController.registerCmd("httpscert", 'c',false,"", "HTTPS Certfile");
    HTTPDCmdController.registerCmd("httpskey", 'k',false, "", "HTTPS Keyfile");
    /*Parse Parameters*/
    HTTPDCmdController.parseCmd(argc,argv);

+1 −1
Changes for src/httpd.h: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ namespace cmdplus {
namespace libhttppp {
    class HttpEvent : public netplus::event {
    public:
        HttpEvent(netplus::socket &ssock,int timeout = 1000);
        HttpEvent(netplus::socket &ssock,int timeout = 10000);

        virtual void RequestEvent(HttpRequest &curreq,const int tid,ULONG_PTR args);
        virtual void ResponseEvent(HttpRequest &curreq,const int tid,ULONG_PTR args);