|
rippled
|


Public Member Functions | |
| template<class Body , class Headers > | |
| SSLWSPeer (Port const &port, Handler &handler, endpoint_type remote_endpoint, boost::beast::http::request< Body, Headers > &&request, std::unique_ptr< stream_type > &&stream_ptr, beast::Journal journal) | |
| void | run () override |
| Port const & | port () const override |
| virtual Port const & | port () const =0 |
| http_request_type const & | request () const override |
| virtual http_request_type const & | request () const =0 |
| boost::asio::ip::tcp::endpoint const & | remote_endpoint () const override |
| virtual boost::asio::ip::tcp::endpoint const & | remote_endpoint () const =0 |
| void | send (std::shared_ptr< WSMsg > w) override |
| Send a WebSockets message. More... | |
| void | close () override |
| void | close (boost::beast::websocket::close_reason const &reason) override |
| void | complete () override |
| Indicate that the response is complete. More... | |
| io_list & | ios () |
| Return the io_list associated with the work. More... | |
| 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 | on_ws_handshake (error_code const &ec) |
| void | do_write () |
| void | on_write (error_code const &ec) |
| void | on_write_fin (error_code const &ec) |
| void | do_read () |
| void | on_read (error_code const &ec) |
| void | on_close (error_code const &ec) |
| void | start_timer () |
| void | cancel_timer () |
| void | on_ping (error_code const &ec) |
| void | on_ping_pong (boost::beast::websocket::frame_type kind, boost::beast::string_view payload) |
| void | on_timer (error_code ec) |
| void | fail (error_code ec, String const &what) |
Protected Attributes | |
| Port const & | port_ |
| Handler & | handler_ |
| endpoint_type | remote_address_ |
| beast::WrappedSink | sink_ |
| const beast::Journal | j_ |
| boost::asio::executor_work_guard< boost::asio::executor > | work_ |
| boost::asio::strand< boost::asio::executor > | strand_ |
Private Types | |
| using | clock_type = std::chrono::system_clock |
| using | error_code = boost::system::error_code |
| using | endpoint_type = boost::asio::ip::tcp::endpoint |
| using | socket_type = boost::beast::tcp_stream |
| using | stream_type = boost::beast::ssl_stream< socket_type > |
| using | waitable_timer = boost::asio::basic_waitable_timer< clock_type > |
Private Member Functions | |
| template<class = void> | |
| void | destroy () |
Private Attributes | |
| std::unique_ptr< stream_type > | stream_ptr_ |
| boost::beast::websocket::stream< stream_type & > | ws_ |
| http_request_type | request_ |
| boost::beast::multi_buffer | rb_ |
| boost::beast::multi_buffer | wb_ |
| std::list< std::shared_ptr< WSMsg > > | wq_ |
| bool | do_close_ |
| The socket has been closed, or will close after the next write finishes. More... | |
| boost::beast::websocket::close_reason | cr_ |
| waitable_timer | timer_ |
| bool | close_on_timer_ |
| bool | ping_active_ |
| boost::beast::websocket::ping_data | payload_ |
| error_code | ec_ |
| std::function< void(boost::beast::websocket::frame_type, boost::beast::string_view)> | control_callback_ |
| io_list * | ios_ = nullptr |
Friends | |
| class | BasePeer< Handler, SSLWSPeer > |
| class | BaseWSPeer< Handler, SSLWSPeer > |
Definition at line 36 of file SSLWSPeer.h.
|
private |
Definition at line 42 of file SSLWSPeer.h.
|
private |
Definition at line 43 of file SSLWSPeer.h.
|
private |
Definition at line 44 of file SSLWSPeer.h.
|
private |
Definition at line 45 of file SSLWSPeer.h.
|
private |
Definition at line 46 of file SSLWSPeer.h.
|
private |
Definition at line 47 of file SSLWSPeer.h.
| ripple::SSLWSPeer< Handler >::SSLWSPeer | ( | Port const & | port, |
| Handler & | handler, | ||
| endpoint_type | remote_endpoint, | ||
| boost::beast::http::request< Body, Headers > && | request, | ||
| std::unique_ptr< stream_type > && | stream_ptr, | ||
| beast::Journal | journal | ||
| ) |
Definition at line 67 of file SSLWSPeer.h.
|
overridevirtualinherited |
Implements ripple::WSSession.
Definition at line 189 of file BaseWSPeer.h.
|
overrideinherited |
Definition at line 89 of file BaseWSPeer.h.
|
pure virtualinherited |
Implemented in ripple::BaseWSPeer< Handler, Impl >.
|
overrideinherited |
Definition at line 95 of file BaseWSPeer.h.
|
pure virtualinherited |
Implemented in ripple::BaseWSPeer< Handler, Impl >.
|
overrideinherited |
Definition at line 101 of file BaseWSPeer.h.
|
pure virtualinherited |
Implemented in ripple::BaseWSPeer< Handler, Impl >.
|
overridevirtualinherited |
Send a WebSockets message.
Implements ripple::WSSession.
Definition at line 223 of file BaseWSPeer.h.
|
overridevirtualinherited |
Implements ripple::WSSession.
Definition at line 249 of file BaseWSPeer.h.
|
overridevirtualinherited |
Implements ripple::WSSession.
Definition at line 256 of file BaseWSPeer.h.
|
overridevirtualinherited |
Indicate that the response is complete.
The handler should call this when it has completed writing the response.
Implements ripple::WSSession.
Definition at line 285 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 120 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 296 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 306 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 317 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 351 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 373 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 391 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 407 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 414 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 435 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 443 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 455 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 476 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 509 of file BaseWSPeer.h.
|
privateinherited |
|
inherited |
Return the io_list associated with the work.
Requirements: The call to io_list::emplace to create the work has already returned.
Definition at line 39 of file SSLWSPeer.h.
|
friend |
Definition at line 40 of file SSLWSPeer.h.
|
private |
Definition at line 49 of file SSLWSPeer.h.
|
private |
Definition at line 50 of file SSLWSPeer.h.
|
privateinherited |
Definition at line 52 of file BaseWSPeer.h.
|
privateinherited |
Definition at line 53 of file BaseWSPeer.h.
|
privateinherited |
Definition at line 54 of file BaseWSPeer.h.
|
privateinherited |
Definition at line 55 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 68 of file BaseWSPeer.h.
|
protectedinherited |
Definition at line 45 of file BasePeer.h.
|
protectedinherited |
Definition at line 46 of file BasePeer.h.
|
protectedinherited |
Definition at line 47 of file BasePeer.h.
|
protectedinherited |
Definition at line 48 of file BasePeer.h.
|
protectedinherited |
Definition at line 49 of file BasePeer.h.
|
protectedinherited |
Definition at line 51 of file BasePeer.h.
|
protectedinherited |
Definition at line 52 of file BasePeer.h.
|
privateinherited |
|
inherited |
Definition at line 109 of file WSSession.h.
1.8.17