Malloy
Loading...
Searching...
No Matches
Public Member Functions | List of all members
malloy::server::http::connection_detector Class Reference

#include <connection_detector.hpp>

Inheritance diagram for malloy::server::http::connection_detector:
Inheritance graph
[legend]
Collaboration diagram for malloy::server::http::connection_detector:
Collaboration graph
[legend]

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 ()
 

Detailed Description

This class is used to detect plain or TLS connections. This is done by looking for a TLS handshake.

Constructor & Destructor Documentation

◆ connection_detector()

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.

Parameters
logger
socket
ctx
doc_root
router

Member Function Documentation

◆ run()

void connection_detector::run ( )

Launch the detector


The documentation for this class was generated from the following files: