|
rippled
|
#include <ServerHandler.h>

Classes | |
| struct | ServerHandlerCreator |
| struct | Setup |
Public Types | |
| using | Output = Json::Output |
Public Member Functions | |
| ServerHandler (ServerHandlerCreator const &, Application &app, boost::asio::io_context &io_context, JobQueue &jobQueue, NetworkOPs &networkOPs, Resource::Manager &resourceManager, CollectorManager &cm) | |
| ~ServerHandler () | |
| void | setup (Setup const &setup, beast::Journal journal) |
| Setup const & | setup () const |
| Endpoints const & | endpoints () const |
| void | stop () |
| bool | onAccept (Session &session, boost::asio::ip::tcp::endpoint endpoint) |
| Handoff | onHandoff (Session &session, std::unique_ptr< stream_type > &&bundle, http_request_type &&request, boost::asio::ip::tcp::endpoint const &remote_address) |
| Handoff | onHandoff (Session &session, http_request_type &&request, boost::asio::ip::tcp::endpoint const &remote_address) |
| void | onRequest (Session &session) |
| void | onWSMessage (std::shared_ptr< WSSession > session, std::vector< boost::asio::const_buffer > const &buffers) |
| void | onClose (Session &session, boost::system::error_code const &) |
| void | onStopped (Server &) |
Private Types | |
| using | socket_type = boost::beast::tcp_stream |
| using | stream_type = boost::beast::ssl_stream< socket_type > |
Private Member Functions | |
| Json::Value | processSession (std::shared_ptr< WSSession > const &session, std::shared_ptr< JobQueue::Coro > const &coro, Json::Value const &jv) |
| void | processSession (std::shared_ptr< Session > const &, std::shared_ptr< JobQueue::Coro > coro) |
| void | processRequest (Port const &port, std::string const &request, beast::IP::Endpoint const &remoteIPAddress, Output &&, std::shared_ptr< JobQueue::Coro > coro, std::string_view forwardedFor, std::string_view user) |
| Handoff | statusResponse (http_request_type const &request) const |
Private Attributes | |
| Application & | app_ |
| Resource::Manager & | m_resourceManager |
| beast::Journal | m_journal |
| NetworkOPs & | m_networkOPs |
| std::unique_ptr< Server > | m_server |
| Setup | setup_ |
| Endpoints | endpoints_ |
| JobQueue & | m_jobQueue |
| beast::insight::Counter | rpc_requests_ |
| beast::insight::Event | rpc_size_ |
| beast::insight::Event | rpc_time_ |
| std::mutex | mutex_ |
| std::condition_variable | condition_ |
| bool | stopped_ {false} |
| std::map< std::reference_wrapper< Port const >, int > | count_ |
Friends | |
| std::unique_ptr< ServerHandler > | make_ServerHandler (Application &app, boost::asio::io_context &, JobQueue &, NetworkOPs &, Resource::Manager &, CollectorManager &cm) |
Definition at line 31 of file ServerHandler.h.
|
private |
Definition at line 65 of file ServerHandler.h.
|
private |
Definition at line 66 of file ServerHandler.h.
Definition at line 114 of file ServerHandler.h.
| ripple::ServerHandler::ServerHandler | ( | ServerHandlerCreator const & | , |
| Application & | app, | ||
| boost::asio::io_context & | io_context, | ||
| JobQueue & | jobQueue, | ||
| NetworkOPs & | networkOPs, | ||
| Resource::Manager & | resourceManager, | ||
| CollectorManager & | cm | ||
| ) |
Definition at line 86 of file ServerHandler.cpp.
| ripple::ServerHandler::~ServerHandler | ( | ) |
Definition at line 107 of file ServerHandler.cpp.
| void ripple::ServerHandler::setup | ( | Setup const & | setup, |
| beast::Journal | journal | ||
| ) |
Definition at line 113 of file ServerHandler.cpp.
| Setup const & ripple::ServerHandler::setup | ( | ) | const |
Definition at line 120 of file ServerHandler.h.
| Endpoints const & ripple::ServerHandler::endpoints | ( | ) | const |
Definition at line 126 of file ServerHandler.h.
| void ripple::ServerHandler::stop | ( | ) |
Definition at line 141 of file ServerHandler.cpp.
| bool ripple::ServerHandler::onAccept | ( | Session & | session, |
| boost::asio::ip::tcp::endpoint | endpoint | ||
| ) |
Definition at line 153 of file ServerHandler.cpp.
| Handoff ripple::ServerHandler::onHandoff | ( | Session & | session, |
| std::unique_ptr< stream_type > && | bundle, | ||
| http_request_type && | request, | ||
| boost::asio::ip::tcp::endpoint const & | remote_address | ||
| ) |
Definition at line 175 of file ServerHandler.cpp.
| Handoff ripple::ServerHandler::onHandoff | ( | Session & | session, |
| http_request_type && | request, | ||
| boost::asio::ip::tcp::endpoint const & | remote_address | ||
| ) |
Definition at line 149 of file ServerHandler.h.
| void ripple::ServerHandler::onRequest | ( | Session & | session | ) |
Definition at line 278 of file ServerHandler.cpp.
| void ripple::ServerHandler::onWSMessage | ( | std::shared_ptr< WSSession > | session, |
| std::vector< boost::asio::const_buffer > const & | buffers | ||
| ) |
Definition at line 318 of file ServerHandler.cpp.
| void ripple::ServerHandler::onClose | ( | Session & | session, |
| boost::system::error_code const & | |||
| ) |
Definition at line 368 of file ServerHandler.cpp.
| void ripple::ServerHandler::onStopped | ( | Server & | ) |
Definition at line 375 of file ServerHandler.cpp.
|
private |
Definition at line 404 of file ServerHandler.cpp.
|
private |
Definition at line 553 of file ServerHandler.cpp.
|
private |
Clear header-assigned values if not positively identified from a secure_gateway.
Definition at line 594 of file ServerHandler.cpp.
|
private |
Definition at line 1032 of file ServerHandler.cpp.
|
friend |
Definition at line 1253 of file ServerHandler.cpp.
|
private |
Definition at line 68 of file ServerHandler.h.
|
private |
Definition at line 69 of file ServerHandler.h.
|
private |
Definition at line 70 of file ServerHandler.h.
|
private |
Definition at line 71 of file ServerHandler.h.
|
private |
Definition at line 72 of file ServerHandler.h.
|
private |
Definition at line 73 of file ServerHandler.h.
|
private |
Definition at line 74 of file ServerHandler.h.
|
private |
Definition at line 75 of file ServerHandler.h.
|
private |
Definition at line 76 of file ServerHandler.h.
|
private |
Definition at line 77 of file ServerHandler.h.
|
private |
Definition at line 78 of file ServerHandler.h.
|
private |
Definition at line 79 of file ServerHandler.h.
|
private |
Definition at line 80 of file ServerHandler.h.
|
private |
Definition at line 81 of file ServerHandler.h.
|
private |
Definition at line 82 of file ServerHandler.h.