Loading examples/CMakeLists.txt +8 −8 Original line number Diff line number Diff line Loading @@ -6,20 +6,20 @@ if(BUILD_EXAMPLES AND ${libhtmlpp_FOUND}) ${CMAKE_SOURCE_DIR}/src ) add_executable (httpcon httpcon.cpp) target_link_libraries(httpcon httppp-static htmlpp::htmlpp-static netplus::netplus-static) target_link_libraries(httpcon httppp-static htmlpp::htmlpp-static netplus::netplus-static cmdplus::cmdplus) add_executable (httpform httpform.cpp) target_link_libraries(httpform httppp-static htmlpp::htmlpp-static netplus::netplus-static) target_link_libraries(httpform httppp-static htmlpp::htmlpp-static netplus::netplus-static cmdplus::cmdplus) add_executable (httpsysinfo httpsysinfo.cpp) target_link_libraries(httpsysinfo httppp-static htmlpp::htmlpp-static netplus::netplus-static) target_link_libraries(httpsysinfo httppp-static htmlpp::htmlpp-static netplus::netplus-static cmdplus::cmdplus) add_executable (httpcookie httpcookie.cpp) target_link_libraries(httpcookie httppp-static htmlpp::htmlpp-static netplus::netplus-static) target_link_libraries(httpcookie httppp-static htmlpp::htmlpp-static netplus::netplus-static cmdplus::cmdplus) add_executable (httpauth httpauth.cpp) target_link_libraries(httpauth httppp-static htmlpp::htmlpp-static netplus::netplus-static) target_link_libraries(httpauth httppp-static htmlpp::htmlpp-static netplus::netplus-static cmdplus::cmdplus) add_executable (httpproxy httpproxy.cpp) target_link_libraries(httpproxy httppp-static htmlpp::htmlpp-static netplus::netplus-static) target_link_libraries(httpproxy httppp-static htmlpp::htmlpp-static netplus::netplus-static cmdplus::cmdplus) add_executable (httphello httphello.cpp) target_link_libraries(httphello httppp-static htmlpp::htmlpp-static netplus::netplus-static) target_link_libraries(httphello httppp-static htmlpp::htmlpp-static netplus::netplus-static cmdplus::cmdplus) endif() add_executable (httpclient httpclient.cpp) target_link_libraries(httpclient httppp-static netplus::netplus-static) target_link_libraries(httpclient httppp-static netplus::netplus-static cmdplus::cmdplus) examples/httpclient.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -83,8 +83,8 @@ int main(int argc, char** argv){ #ifndef Windows signal(SIGPIPE, SIG_IGN); #endif netplus::tcp cltsock; netplus::tcp srvsock(argv[1],(SOCKET)atoi(argv[2]),1,0); netplus::tcp cltsock(argv[1], atoi(argv[2]), 1, 0); netplus::tcp srvsock; try{ srvsock.connect(&cltsock); Loading @@ -104,7 +104,7 @@ int main(int argc, char** argv){ } char *data = new char[16384]; size_t recv=srvsock.recvData(&cltsock,data,16384); size_t recv= cltsock.recvData(&srvsock,data,16384); std::string html; libhttppp::HttpResponse res; Loading Loading
examples/CMakeLists.txt +8 −8 Original line number Diff line number Diff line Loading @@ -6,20 +6,20 @@ if(BUILD_EXAMPLES AND ${libhtmlpp_FOUND}) ${CMAKE_SOURCE_DIR}/src ) add_executable (httpcon httpcon.cpp) target_link_libraries(httpcon httppp-static htmlpp::htmlpp-static netplus::netplus-static) target_link_libraries(httpcon httppp-static htmlpp::htmlpp-static netplus::netplus-static cmdplus::cmdplus) add_executable (httpform httpform.cpp) target_link_libraries(httpform httppp-static htmlpp::htmlpp-static netplus::netplus-static) target_link_libraries(httpform httppp-static htmlpp::htmlpp-static netplus::netplus-static cmdplus::cmdplus) add_executable (httpsysinfo httpsysinfo.cpp) target_link_libraries(httpsysinfo httppp-static htmlpp::htmlpp-static netplus::netplus-static) target_link_libraries(httpsysinfo httppp-static htmlpp::htmlpp-static netplus::netplus-static cmdplus::cmdplus) add_executable (httpcookie httpcookie.cpp) target_link_libraries(httpcookie httppp-static htmlpp::htmlpp-static netplus::netplus-static) target_link_libraries(httpcookie httppp-static htmlpp::htmlpp-static netplus::netplus-static cmdplus::cmdplus) add_executable (httpauth httpauth.cpp) target_link_libraries(httpauth httppp-static htmlpp::htmlpp-static netplus::netplus-static) target_link_libraries(httpauth httppp-static htmlpp::htmlpp-static netplus::netplus-static cmdplus::cmdplus) add_executable (httpproxy httpproxy.cpp) target_link_libraries(httpproxy httppp-static htmlpp::htmlpp-static netplus::netplus-static) target_link_libraries(httpproxy httppp-static htmlpp::htmlpp-static netplus::netplus-static cmdplus::cmdplus) add_executable (httphello httphello.cpp) target_link_libraries(httphello httppp-static htmlpp::htmlpp-static netplus::netplus-static) target_link_libraries(httphello httppp-static htmlpp::htmlpp-static netplus::netplus-static cmdplus::cmdplus) endif() add_executable (httpclient httpclient.cpp) target_link_libraries(httpclient httppp-static netplus::netplus-static) target_link_libraries(httpclient httppp-static netplus::netplus-static cmdplus::cmdplus)
examples/httpclient.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -83,8 +83,8 @@ int main(int argc, char** argv){ #ifndef Windows signal(SIGPIPE, SIG_IGN); #endif netplus::tcp cltsock; netplus::tcp srvsock(argv[1],(SOCKET)atoi(argv[2]),1,0); netplus::tcp cltsock(argv[1], atoi(argv[2]), 1, 0); netplus::tcp srvsock; try{ srvsock.connect(&cltsock); Loading @@ -104,7 +104,7 @@ int main(int argc, char** argv){ } char *data = new char[16384]; size_t recv=srvsock.recvData(&cltsock,data,16384); size_t recv= cltsock.recvData(&srvsock,data,16384); std::string html; libhttppp::HttpResponse res; Loading