rippled
Public Member Functions | Protected Types | Protected Attributes | Private Member Functions | Private Attributes | List of all members
ripple::BasePeer< Handler, Impl > Class Template Reference
Inheritance diagram for ripple::BasePeer< Handler, Impl >:
Inheritance graph
[legend]
Collaboration diagram for ripple::BasePeer< Handler, Impl >:
Collaboration graph
[legend]

Public Member Functions

 BasePeer (Port const &port, Handler &handler, boost::asio::executor const &executor, endpoint_type remote_address, beast::Journal journal)
 
void close () override
 
io_listios ()
 Return the io_list associated with the work. More...
 

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 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 Member Functions

Impl & impl ()
 
template<class = void>
void destroy ()
 

Private Attributes

io_listios_ = nullptr
 

Detailed Description

template<class Handler, class Impl>
class ripple::BasePeer< Handler, Impl >

Definition at line 37 of file BasePeer.h.

Member Typedef Documentation

◆ clock_type

template<class Handler , class Impl >
using ripple::BasePeer< Handler, Impl >::clock_type = std::chrono::system_clock
protected

Definition at line 40 of file BasePeer.h.

◆ error_code

template<class Handler , class Impl >
using ripple::BasePeer< Handler, Impl >::error_code = boost::system::error_code
protected

Definition at line 41 of file BasePeer.h.

◆ endpoint_type

template<class Handler , class Impl >
using ripple::BasePeer< Handler, Impl >::endpoint_type = boost::asio::ip::tcp::endpoint
protected

Definition at line 42 of file BasePeer.h.

◆ waitable_timer

template<class Handler , class Impl >
using ripple::BasePeer< Handler, Impl >::waitable_timer = boost::asio::basic_waitable_timer<clock_type>
protected

Definition at line 43 of file BasePeer.h.

Constructor & Destructor Documentation

◆ BasePeer()

template<class Handler , class Impl >
ripple::BasePeer< Handler, Impl >::BasePeer ( Port const &  port,
Handler &  handler,
boost::asio::executor const &  executor,
endpoint_type  remote_address,
beast::Journal  journal 
)

Definition at line 76 of file BasePeer.h.

Member Function Documentation

◆ close()

template<class Handler , class Impl >
void ripple::BasePeer< Handler, Impl >::close
overridevirtual

◆ impl()

template<class Handler , class Impl >
Impl& ripple::BasePeer< Handler, Impl >::impl ( )
private

Definition at line 67 of file BasePeer.h.

◆ destroy()

template<class = void>
void ripple::io_list::work::destroy ( )
privateinherited

Definition at line 182 of file io_list.h.

◆ ios()

io_list& ripple::io_list::work::ios ( )
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 60 of file io_list.h.

Member Data Documentation

◆ port_

template<class Handler , class Impl >
Port const& ripple::BasePeer< Handler, Impl >::port_
protected

Definition at line 45 of file BasePeer.h.

◆ handler_

template<class Handler , class Impl >
Handler& ripple::BasePeer< Handler, Impl >::handler_
protected

Definition at line 46 of file BasePeer.h.

◆ remote_address_

template<class Handler , class Impl >
endpoint_type ripple::BasePeer< Handler, Impl >::remote_address_
protected

Definition at line 47 of file BasePeer.h.

◆ sink_

template<class Handler , class Impl >
beast::WrappedSink ripple::BasePeer< Handler, Impl >::sink_
protected

Definition at line 48 of file BasePeer.h.

◆ j_

template<class Handler , class Impl >
const beast::Journal ripple::BasePeer< Handler, Impl >::j_
protected

Definition at line 49 of file BasePeer.h.

◆ work_

template<class Handler , class Impl >
boost::asio::executor_work_guard<boost::asio::executor> ripple::BasePeer< Handler, Impl >::work_
protected

Definition at line 51 of file BasePeer.h.

◆ strand_

template<class Handler , class Impl >
boost::asio::strand<boost::asio::executor> ripple::BasePeer< Handler, Impl >::strand_
protected

Definition at line 52 of file BasePeer.h.

◆ ios_

io_list* ripple::io_list::work::ios_ = nullptr
privateinherited

Definition at line 45 of file io_list.h.