Clio develop
The XRP Ledger API server.
|
The WebServer class. It creates server socket and start listening on it. More...
#include <Server.hpp>
Public Member Functions | |
Server (boost::asio::io_context &ioc, std::optional< boost::asio::ssl::context > ctx, tcp::endpoint endpoint, util::TagDecoratorFactory tagFactory, dosguard::DOSGuardInterface &dosGuard, std::shared_ptr< HandlerType > handler, std::shared_ptr< AdminVerificationStrategy > adminVerification, std::uint32_t maxWsSendingQueueSize) | |
Create a new instance of the web server. | |
void | run () |
Start accepting incoming connections. | |
The WebServer class. It creates server socket and start listening on it.
Once there is client connection, it will accept it and pass the socket to Detector to detect ssl or plain.
PlainSessionType | The plain session to handle non-ssl connection. |
SslSessionType | The SSL session to handle SSL connection. |
HandlerType | The handler to process the request and return response. |
|
inline |
Create a new instance of the web server.
ioc | The io_context to run the server on |
ctx | The SSL context if any |
endpoint | The endpoint to listen on |
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 |
adminVerification | The admin verification strategy to use |
maxWsSendingQueueSize | The maximum size of the sending queue for websocket |