|
| Detector (tcp::socket &&socket, std::optional< std::reference_wrapper< boost::asio::ssl::context > > ctx, std::reference_wrapper< util::TagDecoratorFactory const > tagFactory, std::reference_wrapper< dosguard::DOSGuardInterface > dosGuard, std::shared_ptr< HandlerType > handler, std::shared_ptr< AdminVerificationStrategy > adminVerification, std::uint32_t maxWsSendingQueueSize, std::shared_ptr< ProxyIpResolver > proxyIpResolver) |
| Create a new detector.
|
|
void | fail (boost::system::error_code ec, char const *message) |
| A helper function that is called when any error occurs.
|
|
void | run () |
| Initiate the detection.
|
|
void | onDetect (boost::beast::error_code ec, bool result) |
| Handles detection result.
|
|
template<template< typename > class PlainSessionType, template< typename > class SslSessionType, SomeServerHandler HandlerType>
class web::Detector< PlainSessionType, SslSessionType, HandlerType >
The Detector class to detect if the connection is a ssl or not.
If it is an SSL connection, the Detector will pass the ownership of the socket to SslSessionType, otherwise to PlainSessionType.
- Template Parameters
-
PlainSessionType | The plain session type |
SslSessionType | The SSL session type |
HandlerType | The executor to handle the requests |