Commit 0e8b36bc authored by jan.koester's avatar jan.koester
Browse files

test

parent 6be3d047
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -21,6 +21,18 @@
            "buildCommandArgs": "",
            "ctestCommandArgs": "",
            "inheritEnvironments": [ "msvc_x64_x64" ]
        },
        {
            "name": "x86-Debug",
            "generator": "Ninja",
            "configurationType": "Debug",
            "buildRoot": "${projectDir}\\out\\build\\${name}",
            "installRoot": "${projectDir}\\out\\install\\${name}",
            "cmakeCommandArgs": "",
            "buildCommandArgs": "",
            "ctestCommandArgs": "",
            "inheritEnvironments": [ "msvc_x86" ],
            "variables": []
        }
    ]
}
 No newline at end of file
+0 −1
Original line number Diff line number Diff line
@@ -57,7 +57,6 @@ public:
    try {
        Controller controller(getServerSocket());
        controller.runEventloop();
        std::cout << "noe" << std::endl;
    }catch(netplus::NetException &e){
        httpexception[libhttppp::HTTPException::Critical] << e.what();
        throw httpexception;
+4 −2
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@
#define MAXDEFAULTCONN 1024
#define MBEDTLS_PSA_CRYPTO_CONFIG true

libhttppp::HttpEvent::HttpEvent(netplus::socket *ssock) : netplus::event(ssock){
libhttppp::HttpEvent::HttpEvent(netplus::socket *csock) : netplus::event(csock){
}

void libhttppp::HttpEvent::CreateConnetion(netplus::con ** curon){
@@ -126,6 +126,8 @@ void libhttppp::HttpEvent::DisconnectEvent(netplus::con* curcon,const int tid,vo


libhttppp::HttpD::HttpD(int argc, char** argv) {
    _fileServer = false;
    _ServerSocket = nullptr;
    HTTPDCmdController= &cmdplus::CmdController::getInstance();
    /*Register Parameters*/
    HTTPDCmdController->registerCmd("help", 'h', false, (const char*) nullptr, "Helpmenu");
@@ -211,7 +213,7 @@ libhttppp::HttpD::HttpD(int argc, char** argv) {
            else
                _ServerSocket = new netplus::tcp(httpaddr, maxconnections,-1);
            #else
            _ServerSocket = new netplus::tcp(httpaddr, port, maxconnections);
            _ServerSocket = new netplus::tcp(httpaddr, port, maxconnections,-1);
            #endif 
        }
    }catch (netplus::NetException &e) {
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ namespace libhttppp {

    class HttpEvent : public netplus::event{
    public:
        HttpEvent(netplus::socket *ssock);
        HttpEvent(netplus::socket *csock);
        void CreateConnetion(netplus::con **curon);
        void deleteConnetion(netplus::con *curon);