|
xrpld
|
#include <SSLWSPeer.h>


Public Member Functions | |
| template<class Body, class Headers> | |
| SSLWSPeer (Port const &port, Handler &handler, EndpointType remoteEndpoint, boost::beast::http::request< Body, Headers > &&request, std::unique_ptr< StreamType > &&streamPtr, beast::Journal journal) | |
| void | run () override |
| Port const & | port () const override |
| HttpRequestType const & | request () const override |
| boost::asio::ip::tcp::endpoint const & | remoteEndpoint () const override |
| void | send (std::shared_ptr< WSMsg > w) override |
| Send a WebSockets message. | |
| void | close () override |
| virtual void | close (boost::beast::websocket::close_reason const &reason)=0 |
| void | complete () override |
| Indicate that the response is complete. | |
| IOList & | ios () |
| Return the IOList associated with the work. | |
| T | shared_from_this (T... args) |
| T | weak_from_this (T... args) |
Public Attributes | |
| std::shared_ptr< void > | appDefined |
Protected Member Functions | |
| SSLWSPeer< Handler > & | impl () |
| void | onWsHandshake (ErrorCode const &ec) |
| void | doWrite () |
| void | onWrite (ErrorCode const &ec) |
| void | onWriteFin (ErrorCode const &ec) |
| void | doRead () |
| void | onRead (ErrorCode const &ec) |
| void | onClose (ErrorCode const &ec) |
| void | startTimer () |
| void | cancelTimer () |
| void | onPing (ErrorCode const &ec) |
| void | onPingPong (boost::beast::websocket::frame_type kind, std::string_view payload) |
| void | onTimer (ErrorCode ec) |
| void | fail (ErrorCode ec, String const &what) |
Protected Attributes | |
| Port const & | port_ |
| Handler & | handler_ |
| EndpointType | remoteAddress_ |
| beast::WrappedSink | sink_ |
| beast::Journal const | j_ |
| boost::asio::executor_work_guard< boost::asio::executor > | work_ |
| boost::asio::strand< boost::asio::executor > | strand_ |
Private Types | |
| using | ClockType = std::chrono::system_clock |
| using | ErrorCode = boost::system::error_code |
| using | EndpointType = boost::asio::ip::tcp::endpoint |
| using | SocketType = boost::beast::tcp_stream |
| using | StreamType = boost::beast::ssl_stream<SocketType> |
| using | WaitableTimer = boost::asio::basic_waitable_timer<ClockType> |
Private Member Functions | |
| void | destroy () |
Private Attributes | |
| std::unique_ptr< StreamType > | streamPtr_ |
| boost::beast::websocket::stream< StreamType & > | ws_ |
| HttpRequestType | request_ |
| boost::beast::multi_buffer | rb_ |
| boost::beast::multi_buffer | wb_ |
| std::list< std::shared_ptr< WSMsg > > | wq_ |
| bool | doClose_ |
| The socket has been closed, or will close after the next write finishes. | |
| boost::beast::websocket::close_reason | cr_ |
| WaitableTimer | timer_ |
| bool | closeOnTimer_ |
| bool | pingActive_ |
| boost::beast::websocket::ping_data | payload_ |
| ErrorCode | ec_ |
| std::function< void(boost::beast::websocket::frame_type, std::string_view)> | controlCallback_ |
| IOList * | ios_ |
Friends | |
| class | BasePeer< Handler, SSLWSPeer > |
| class | BaseWSPeer< Handler, SSLWSPeer > |
Definition at line 23 of file SSLWSPeer.h.
|
private |
Definition at line 29 of file SSLWSPeer.h.
|
private |
Definition at line 30 of file SSLWSPeer.h.
|
private |
Definition at line 31 of file SSLWSPeer.h.
|
private |
Definition at line 32 of file SSLWSPeer.h.
|
private |
Definition at line 33 of file SSLWSPeer.h.
|
private |
Definition at line 34 of file SSLWSPeer.h.
| xrpl::SSLWSPeer< Handler >::SSLWSPeer | ( | Port const & | port, |
| Handler & | handler, | ||
| EndpointType | remoteEndpoint, | ||
| boost::beast::http::request< Body, Headers > && | request, | ||
| std::unique_ptr< StreamType > && | streamPtr, | ||
| beast::Journal | journal ) |
Definition at line 54 of file SSLWSPeer.h.
|
overridevirtualinherited |
Implements xrpl::WSSession.
Definition at line 80 of file BaseWSPeer.h.
|
nodiscardoverridevirtualinherited |
Implements xrpl::WSSession.
Definition at line 87 of file BaseWSPeer.h.
|
nodiscardoverridevirtualinherited |
Implements xrpl::WSSession.
Definition at line 93 of file BaseWSPeer.h.
|
nodiscardoverridevirtualinherited |
Implements xrpl::WSSession.
Definition at line 99 of file BaseWSPeer.h.
|
overridevirtualinherited |
|
overridevirtualinherited |
Reimplemented from xrpl::BasePeer< Handler, SSLWSPeer< Handler > >.
Definition at line 108 of file BaseWSPeer.h.
|
pure virtualinherited |
Implemented in xrpl::BaseWSPeer< Handler, Impl >.
|
overridevirtualinherited |
Indicate that the response is complete.
The handler should call this when it has completed writing the response.
Implements xrpl::WSSession.
Definition at line 114 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 118 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 124 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 127 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 130 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 133 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 136 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 139 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 142 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 145 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 148 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 151 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 154 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 157 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 161 of file BaseWSPeer.h.
|
privateinherited |
|
inherited |
Return the IOList associated with the work.
Requirements: The call to IOList::emplace to create the work has already returned.
Definition at line 54 of file SSLWSPeer.h.
|
friend |
Definition at line 54 of file SSLWSPeer.h.
|
private |
Definition at line 36 of file SSLWSPeer.h.
|
private |
Definition at line 37 of file SSLWSPeer.h.
|
privateinherited |
Definition at line 50 of file BaseWSPeer.h.
|
privateinherited |
Definition at line 51 of file BaseWSPeer.h.
|
privateinherited |
Definition at line 52 of file BaseWSPeer.h.
|
privateinherited |
Definition at line 53 of file BaseWSPeer.h.
|
privateinherited |
The socket has been closed, or will close after the next write finishes.
Do not do any more writes, and don't try to close again.
Definition at line 59 of file BaseWSPeer.h.
|
privateinherited |
Definition at line 60 of file BaseWSPeer.h.
|
privateinherited |
Definition at line 61 of file BaseWSPeer.h.
|
privateinherited |
Definition at line 62 of file BaseWSPeer.h.
|
privateinherited |
Definition at line 63 of file BaseWSPeer.h.
|
privateinherited |
Definition at line 64 of file BaseWSPeer.h.
|
privateinherited |
Definition at line 65 of file BaseWSPeer.h.
|
privateinherited |
Definition at line 66 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 28 of file BasePeer.h.
|
protectedinherited |
Definition at line 29 of file BasePeer.h.
|
protectedinherited |
Definition at line 30 of file BasePeer.h.
|
protectedinherited |
Definition at line 31 of file BasePeer.h.
|
protectedinherited |
Definition at line 32 of file BasePeer.h.
|
protectedinherited |
Definition at line 34 of file BasePeer.h.
|
protectedinherited |
Definition at line 35 of file BasePeer.h.
|
privateinherited |
|
inherited |
Definition at line 90 of file WSSession.h.