|
Malloy
|
#include <connection_detector.hpp>


Public Member Functions | |
| connection_detector (std::shared_ptr< spdlog::logger > logger, boost::asio::ip::tcp::socket &&socket, std::shared_ptr< boost::asio::ssl::context > ctx, std::shared_ptr< const std::filesystem::path > doc_root, std::shared_ptr< malloy::server::router > router, std::string agent_string) | |
| void | run () |
This class is used to detect plain or TLS connections. This is done by looking for a TLS handshake.
| connection_detector::connection_detector | ( | std::shared_ptr< spdlog::logger > | logger, |
| boost::asio::ip::tcp::socket && | socket, | ||
| std::shared_ptr< boost::asio::ssl::context > | ctx, | ||
| std::shared_ptr< const std::filesystem::path > | doc_root, | ||
| std::shared_ptr< malloy::server::router > | router, | ||
| std::string | agent_string | ||
| ) |
Constructor.
| logger | |
| socket | |
| ctx | |
| doc_root | |
| router |
| void connection_detector::run | ( | ) |
Launch the detector