Loading CMakeSettings.json +12 −0 Original line number Diff line number Diff line Loading @@ -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 examples/httphello.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -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; Loading src/httpd.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -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){ Loading Loading @@ -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"); Loading Loading @@ -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) { Loading src/httpd.h +1 −1 Original line number Diff line number Diff line Loading @@ -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); Loading Loading
CMakeSettings.json +12 −0 Original line number Diff line number Diff line Loading @@ -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
examples/httphello.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -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; Loading
src/httpd.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -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){ Loading Loading @@ -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"); Loading Loading @@ -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) { Loading
src/httpd.h +1 −1 Original line number Diff line number Diff line Loading @@ -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); Loading