Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
web::ng::impl::ConnectionHandler Class Reference

Public Types

using OnDisconnectHook = std::function<void(Connection const&)>
using OnIpChangeHook = std::function<void(std::string const&, std::string const&)>
using TargetToHandlerMap = std::unordered_map<std::string, MessageHandler, util::StringHash, std::equal_to<>>

Public Member Functions

 ConnectionHandler (ProcessingPolicy processingPolicy, std::optional< size_t > maxParallelRequests, util::TagDecoratorFactory &tagFactory, std::optional< size_t > maxSubscriptionSendQueueSize, ProxyIpResolver proxyIpResolver, OnDisconnectHook onDisconnectHook, OnIpChangeHook onIpChangeHook)
 ConnectionHandler (ConnectionHandler &&)=delete
void onGet (std::string const &target, MessageHandler handler)
void onPost (std::string const &target, MessageHandler handler)
void onWs (MessageHandler handler)
void processConnection (ConnectionPtr connection, boost::asio::yield_context yield)
void stop (boost::asio::yield_context yield)
bool isStopping () const

Static Public Member Functions

static void stopConnection (Connection &connection, boost::asio::yield_context yield)

Static Public Attributes

static constexpr std::chrono::milliseconds kCLOSE_CONNECTION_TIMEOUT {500}

The documentation for this class was generated from the following files:
  • /__w/clio/clio/src/web/ng/impl/ConnectionHandler.hpp
  • /__w/clio/clio/src/web/ng/impl/ConnectionHandler.cpp