Monero
Public Member Functions | Public Attributes | List of all members
epee::levin::async_protocol_handler< t_connection_context >::anvoke_handler< callback_t > Struct Template Reference

#include <levin_protocol_handler_async.h>

Inheritance diagram for epee::levin::async_protocol_handler< t_connection_context >::anvoke_handler< callback_t >:
Inheritance graph
[legend]
Collaboration diagram for epee::levin::async_protocol_handler< t_connection_context >::anvoke_handler< callback_t >:
Collaboration graph
[legend]

Public Member Functions

 anvoke_handler (const callback_t &cb, uint64_t timeout, async_protocol_handler &con, int command)
 
virtual ~anvoke_handler ()
 
virtual bool handle (int res, const epee::span< const uint8_t > buff, typename async_protocol_handler::connection_context &context)
 
virtual bool is_timer_started () const
 
virtual void cancel ()
 
virtual bool cancel_timer ()
 
virtual void reset_timer ()
 

Public Attributes

callback_t m_cb
 
async_protocol_handlerm_con
 
boost::asio::deadline_timer m_timer
 
bool m_timer_started
 
bool m_cancel_timer_called
 
bool m_timer_cancelled
 
uint64_t m_timeout
 
int m_command
 

Constructor & Destructor Documentation

◆ anvoke_handler()

template<class t_connection_context = net_utils::connection_context_base>
template<class callback_t >
epee::levin::async_protocol_handler< t_connection_context >::anvoke_handler< callback_t >::anvoke_handler ( const callback_t &  cb,
uint64_t  timeout,
async_protocol_handler con,
int  command 
)
inline

◆ ~anvoke_handler()

template<class t_connection_context = net_utils::connection_context_base>
template<class callback_t >
virtual epee::levin::async_protocol_handler< t_connection_context >::anvoke_handler< callback_t >::~anvoke_handler ( )
inlinevirtual

Member Function Documentation

◆ cancel()

template<class t_connection_context = net_utils::connection_context_base>
template<class callback_t >
virtual void epee::levin::async_protocol_handler< t_connection_context >::anvoke_handler< callback_t >::cancel ( )
inlinevirtual

◆ cancel_timer()

template<class t_connection_context = net_utils::connection_context_base>
template<class callback_t >
virtual bool epee::levin::async_protocol_handler< t_connection_context >::anvoke_handler< callback_t >::cancel_timer ( )
inlinevirtual

◆ handle()

template<class t_connection_context = net_utils::connection_context_base>
template<class callback_t >
virtual bool epee::levin::async_protocol_handler< t_connection_context >::anvoke_handler< callback_t >::handle ( int  res,
const epee::span< const uint8_t buff,
typename async_protocol_handler::connection_context context 
)
inlinevirtual

◆ is_timer_started()

template<class t_connection_context = net_utils::connection_context_base>
template<class callback_t >
virtual bool epee::levin::async_protocol_handler< t_connection_context >::anvoke_handler< callback_t >::is_timer_started ( ) const
inlinevirtual

◆ reset_timer()

template<class t_connection_context = net_utils::connection_context_base>
template<class callback_t >
virtual void epee::levin::async_protocol_handler< t_connection_context >::anvoke_handler< callback_t >::reset_timer ( )
inlinevirtual

Member Data Documentation

◆ m_cancel_timer_called

template<class t_connection_context = net_utils::connection_context_base>
template<class callback_t >
bool epee::levin::async_protocol_handler< t_connection_context >::anvoke_handler< callback_t >::m_cancel_timer_called

◆ m_cb

template<class t_connection_context = net_utils::connection_context_base>
template<class callback_t >
callback_t epee::levin::async_protocol_handler< t_connection_context >::anvoke_handler< callback_t >::m_cb

◆ m_command

template<class t_connection_context = net_utils::connection_context_base>
template<class callback_t >
int epee::levin::async_protocol_handler< t_connection_context >::anvoke_handler< callback_t >::m_command

◆ m_con

template<class t_connection_context = net_utils::connection_context_base>
template<class callback_t >
async_protocol_handler& epee::levin::async_protocol_handler< t_connection_context >::anvoke_handler< callback_t >::m_con

◆ m_timeout

template<class t_connection_context = net_utils::connection_context_base>
template<class callback_t >
uint64_t epee::levin::async_protocol_handler< t_connection_context >::anvoke_handler< callback_t >::m_timeout

◆ m_timer

template<class t_connection_context = net_utils::connection_context_base>
template<class callback_t >
boost::asio::deadline_timer epee::levin::async_protocol_handler< t_connection_context >::anvoke_handler< callback_t >::m_timer

◆ m_timer_cancelled

template<class t_connection_context = net_utils::connection_context_base>
template<class callback_t >
bool epee::levin::async_protocol_handler< t_connection_context >::anvoke_handler< callback_t >::m_timer_cancelled

◆ m_timer_started

template<class t_connection_context = net_utils::connection_context_base>
template<class callback_t >
bool epee::levin::async_protocol_handler< t_connection_context >::anvoke_handler< callback_t >::m_timer_started

The documentation for this struct was generated from the following file: