|
xrpld
|
#include <BasePeer.h>


Public Member Functions | |
| BasePeer (Port const &port, Handler &handler, boost::asio::executor const &executor, endpoint_type remoteAddress, beast::Journal journal) | |
| void | close () override |
| IOList & | ios () |
| Return the IOList associated with the work. | |
Protected Types | |
| using | clock_type = std::chrono::system_clock |
| using | error_code = boost::system::error_code |
| using | endpoint_type = boost::asio::ip::tcp::endpoint |
| using | waitable_timer = boost::asio::basic_waitable_timer<clock_type> |
Protected Attributes | |
| Port const & | port_ |
| Handler & | handler_ |
| endpoint_type | 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 Member Functions | |
| Impl & | impl () |
| template<class = void> | |
| void | destroy () |
Private Attributes | |
| IOList * | ios_ = nullptr |
Definition at line 20 of file BasePeer.h.
|
protected |
Definition at line 23 of file BasePeer.h.
|
protected |
Definition at line 24 of file BasePeer.h.
|
protected |
Definition at line 25 of file BasePeer.h.
|
protected |
Definition at line 26 of file BasePeer.h.
| xrpl::BasePeer< Handler, Impl >::BasePeer | ( | Port const & | port, |
| Handler & | handler, | ||
| boost::asio::executor const & | executor, | ||
| endpoint_type | remoteAddress, | ||
| beast::Journal | journal ) |
Definition at line 60 of file BasePeer.h.
|
overridevirtual |
Implements xrpl::IOList::Work.
Reimplemented in xrpl::BaseWSPeer< Handler, Impl >, xrpl::BaseWSPeer< Handler, PlainWSPeer< Handler > >, and xrpl::BaseWSPeer< Handler, SSLWSPeer< Handler > >.
Definition at line 83 of file BasePeer.h.
|
private |
Definition at line 51 of file BasePeer.h.
|
privateinherited |
|
inherited |
Return the IOList associated with the work.
Requirements: The call to IOList::emplace to create the work has already returned.
|
protected |
Definition at line 28 of file BasePeer.h.
|
protected |
Definition at line 29 of file BasePeer.h.
|
protected |
Definition at line 30 of file BasePeer.h.
|
protected |
Definition at line 31 of file BasePeer.h.
|
protected |
Definition at line 32 of file BasePeer.h.
|
protected |
Definition at line 34 of file BasePeer.h.
|
protected |
Definition at line 35 of file BasePeer.h.