|
Clio
develop
The XRP Ledger API server.
|
The HTTPS upgrader class, upgrade from an HTTPS session to a secure websocket session. More...
#include <SslWsSession.hpp>


Public Member Functions | |
| SslWsUpgrader (boost::beast::ssl_stream< boost::beast::tcp_stream > stream, std::string ip, std::reference_wrapper< util::TagDecoratorFactory const > tagFactory, std::reference_wrapper< dosguard::DOSGuardInterface > dosGuard, std::shared_ptr< HandlerType > handler, boost::beast::flat_buffer &&buffer, http::request< http::string_body > request, bool isAdmin, std::uint32_t maxWsSendingQueueSize) | |
| Create a new upgrader to secure websocket. | |
| void | run () |
| Initiate the upgrade. | |
The HTTPS upgrader class, upgrade from an HTTPS session to a secure websocket session.
Pass the stream to the session class after upgrade.
|
inline |
Create a new upgrader to secure websocket.
| stream | The SSL stream. Ownership is transferred |
| ip | Client's IP address |
| tagFactory | A factory that is used to generate tags to track requests and sessions |
| dosGuard | The denial of service guard to use |
| handler | The server handler to use |
| buffer | Buffer with initial data received from the peer. Ownership is transferred |
| request | The request. Ownership is transferred |
| isAdmin | Whether the connection has admin privileges |
| maxWsSendingQueueSize | The maximum size of the sending queue for websocket |