rippled
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ripple::Door< Handler >::Detector Class Reference
Inheritance diagram for ripple::Door< Handler >::Detector:
Inheritance graph
[legend]
Collaboration diagram for ripple::Door< Handler >::Detector:
Collaboration graph
[legend]

Public Member Functions

 Detector (Port const &port, Handler &handler, boost::asio::io_context &ioc, stream_type &&stream, endpoint_type remote_address, beast::Journal j)
 
void run ()
 
void close () override
 
io_listios ()
 Return the io_list associated with the work. More...
 
shared_from_this (T... args)
 
weak_from_this (T... args)
 

Private Member Functions

void do_detect (yield_context yield)
 
template<class = void>
void destroy ()
 

Private Attributes

Port const & port_
 
Handler & handler_
 
boost::asio::io_context & ioc_
 
stream_type stream_
 
socket_typesocket_
 
endpoint_type remote_address_
 
boost::asio::io_context::strand strand_
 
const beast::Journal j_
 
io_listios_ = nullptr
 

Detailed Description

template<class Handler>
class ripple::Door< Handler >::Detector

Definition at line 62 of file Door.h.

Constructor & Destructor Documentation

◆ Detector()

template<class Handler >
ripple::Door< Handler >::Detector::Detector ( Port const &  port,
Handler &  handler,
boost::asio::io_context &  ioc,
stream_type &&  stream,
endpoint_type  remote_address,
beast::Journal  j 
)

Definition at line 145 of file Door.h.

Member Function Documentation

◆ run()

template<class Handler >
void ripple::Door< Handler >::Detector::run

Definition at line 165 of file Door.h.

◆ close()

template<class Handler >
void ripple::Door< Handler >::Detector::close
overridevirtual

Implements ripple::io_list::work.

Definition at line 177 of file Door.h.

◆ do_detect()

template<class Handler >
void ripple::Door< Handler >::Detector::do_detect ( yield_context  yield)
private

Definition at line 184 of file Door.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 >
Port const& ripple::Door< Handler >::Detector::port_
private

Definition at line 66 of file Door.h.

◆ handler_

template<class Handler >
Handler& ripple::Door< Handler >::Detector::handler_
private

Definition at line 67 of file Door.h.

◆ ioc_

template<class Handler >
boost::asio::io_context& ripple::Door< Handler >::Detector::ioc_
private

Definition at line 68 of file Door.h.

◆ stream_

template<class Handler >
stream_type ripple::Door< Handler >::Detector::stream_
private

Definition at line 69 of file Door.h.

◆ socket_

template<class Handler >
socket_type& ripple::Door< Handler >::Detector::socket_
private

Definition at line 70 of file Door.h.

◆ remote_address_

template<class Handler >
endpoint_type ripple::Door< Handler >::Detector::remote_address_
private

Definition at line 71 of file Door.h.

◆ strand_

template<class Handler >
boost::asio::io_context::strand ripple::Door< Handler >::Detector::strand_
private

Definition at line 72 of file Door.h.

◆ j_

template<class Handler >
const beast::Journal ripple::Door< Handler >::Detector::j_
private

Definition at line 73 of file Door.h.

◆ ios_

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

Definition at line 45 of file io_list.h.