Commit 18fd6a0d authored by jan.koester's avatar jan.koester
Browse files

fixed

parent a4148097
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -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)
+3 −3
Original line number Diff line number Diff line
@@ -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);

@@ -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;