Loading examples/httpform.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -44,7 +44,7 @@ public: }; void RequestEvent(libhttppp::HttpRequest* curreq , const int tid,void *args){ void RequestEvent(libhttppp::HttpRequest* curreq , const int tid,ULONG_PTR args){ libhtmlpp::HtmlString formdat; try { Multiform(curreq, formdat); Loading examples/httphello.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ public: Controller(netplus::socket* serversocket) : HttpEvent(serversocket){ }; void RequestEvent(libhttppp::HttpRequest *curreq, const int tid,void *args){ void RequestEvent(libhttppp::HttpRequest *curreq, const int tid,ULONG_PTR args){ try{ libhttppp::HttpResponse curres; const char *hello="<!DOCTYPE html><html><head><title>hello</title></head><body>Hello World</body></html>"; Loading examples/httpproxy.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -67,7 +67,7 @@ public: Controller(netplus::socket* serversocket) : HttpEvent(serversocket){ }; void RequestEvent(libhttppp::HttpRequest *curreq, const int tid,void *args){ void RequestEvent(libhttppp::HttpRequest *curreq, const int tid,ULONG_PTR args){ try{ std::cout << "Send answer" << std::endl; sendResponse(curreq); Loading examples/httpsysinfo.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -164,7 +164,7 @@ public: } } /*virtual method from event will call for every incomming Request*/ void RequestEvent(libhttppp::HttpRequest* curreq, const int tid,void *args){ void RequestEvent(libhttppp::HttpRequest* curreq, const int tid,ULONG_PTR args){ try{ /*self implemented controller see above*/ IndexController(curreq); Loading @@ -173,7 +173,7 @@ public: } } void ResponseEvent(libhttppp::HttpRequest * curreq, const int tid, void * args){ void ResponseEvent(libhttppp::HttpRequest * curreq, const int tid,ULONG_PTR args){ const char *cururl=curreq->getRequestURL(); if(strncmp(cururl,"/images/header.png",18)==0){ if(curreq->SendData.pos < header_png_size){ Loading Loading
examples/httpform.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -44,7 +44,7 @@ public: }; void RequestEvent(libhttppp::HttpRequest* curreq , const int tid,void *args){ void RequestEvent(libhttppp::HttpRequest* curreq , const int tid,ULONG_PTR args){ libhtmlpp::HtmlString formdat; try { Multiform(curreq, formdat); Loading
examples/httphello.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ public: Controller(netplus::socket* serversocket) : HttpEvent(serversocket){ }; void RequestEvent(libhttppp::HttpRequest *curreq, const int tid,void *args){ void RequestEvent(libhttppp::HttpRequest *curreq, const int tid,ULONG_PTR args){ try{ libhttppp::HttpResponse curres; const char *hello="<!DOCTYPE html><html><head><title>hello</title></head><body>Hello World</body></html>"; Loading
examples/httpproxy.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -67,7 +67,7 @@ public: Controller(netplus::socket* serversocket) : HttpEvent(serversocket){ }; void RequestEvent(libhttppp::HttpRequest *curreq, const int tid,void *args){ void RequestEvent(libhttppp::HttpRequest *curreq, const int tid,ULONG_PTR args){ try{ std::cout << "Send answer" << std::endl; sendResponse(curreq); Loading
examples/httpsysinfo.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -164,7 +164,7 @@ public: } } /*virtual method from event will call for every incomming Request*/ void RequestEvent(libhttppp::HttpRequest* curreq, const int tid,void *args){ void RequestEvent(libhttppp::HttpRequest* curreq, const int tid,ULONG_PTR args){ try{ /*self implemented controller see above*/ IndexController(curreq); Loading @@ -173,7 +173,7 @@ public: } } void ResponseEvent(libhttppp::HttpRequest * curreq, const int tid, void * args){ void ResponseEvent(libhttppp::HttpRequest * curreq, const int tid,ULONG_PTR args){ const char *cururl=curreq->getRequestURL(); if(strncmp(cururl,"/images/header.png",18)==0){ if(curreq->SendData.pos < header_png_size){ Loading