adapt for 32bit os.

This commit is contained in:
luocai 2023-12-29 19:10:38 +08:00
parent 46836a2d5f
commit 80ed62b4c7
3 changed files with 3 additions and 5 deletions

View File

@ -14,9 +14,7 @@ if(TARGET Boost::serialization)
add_subdirectory(Encrypt) add_subdirectory(Encrypt)
endif() endif()
if(TARGET Boost::url) add_subdirectory(HttpProxy)
add_subdirectory(HttpProxy)
endif()
if(TARGET Qt${QT_VERSION_MAJOR}::Core) if(TARGET Qt${QT_VERSION_MAJOR}::Core)
add_subdirectory(QtComponets) add_subdirectory(QtComponets)

View File

@ -13,7 +13,7 @@ add_library(HttpProxy
target_include_directories(HttpProxy target_include_directories(HttpProxy
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
PRIVATE ${OPENSSL_INCLUDE_DIR} PRIVATE ${OpenSSL_INCLUDE_DIR}
) )
target_link_libraries(HttpProxy target_link_libraries(HttpProxy

View File

@ -19,7 +19,7 @@ protected:
private: private:
boost::asio::ip::tcp::resolver m_resolver; boost::asio::ip::tcp::resolver m_resolver;
std::optional<boost::beast::http::request_parser<boost::beast::http::string_body>> m_parser; std::optional<boost::beast::http::request_parser<boost::beast::http::string_body>> m_parser;
boost::beast::flat_buffer m_buffer{std::numeric_limits<std::uint64_t>::max()}; boost::beast::flat_buffer m_buffer{std::numeric_limits<std::uint32_t>::max()};
boost::beast::tcp_stream m_clientStream; boost::beast::tcp_stream m_clientStream;
boost::beast::tcp_stream m_serverStream; boost::beast::tcp_stream m_serverStream;
}; };