#include <service.h>
Classes |
|
class | TimeoutHandler |
Public Types |
|
typedef std::shared_ptr< TimeoutHandler > | timeout_handler_ptr |
typedef boost::multi_index_container< timeout_handler_ptr, boost::multi_index::indexed_by< boost::multi_index::hashed_unique< boost::multi_index::const_mem_fun< TimeoutHandler, const TimeoutHandler *,&TimeoutHandler::address > > > > | timeout_map |
Public Member Functions |
|
ServiceContext (EventLoop *loop=0) | |
timeout_map::size_type | count_timeouts () const |
void | clear_timeouts () |
timeout_handler_ptr | add_timeout (const timeout_handler &handler_fun, const TimeValue &timeout, const bool once) |
void | remove_timeout (TimeoutHandler *timeout) |
EventLoop & | event_loop () |
Detailed Description
Definition at line 98 of file service/service.h.
Member Typedef Documentation
typedef std::shared_ptr<TimeoutHandler> ServiceContext::timeout_handler_ptr |
Definition at line 137 of file service/service.h.
typedef boost::multi_index_container< timeout_handler_ptr, boost::multi_index::indexed_by< boost::multi_index::hashed_unique< boost::multi_index::const_mem_fun<TimeoutHandler, const TimeoutHandler *, &TimeoutHandler::address> > > > ServiceContext::timeout_map |
Definition at line 146 of file service/service.h.
Constructor & Destructor Documentation
|
inlineexplicit |
Definition at line 154 of file service/service.h.
Member Function Documentation
|
inline |
Definition at line 166 of file service/service.h.
References EventLoop::None.
Referenced by ServiceProtocolProcessor< PackingTraits >::schedule_timeout().
|
inline |
Definition at line 160 of file service/service.h.
References remove_timeout().
Referenced by ServiceProtocolProcessor< PackingTraits >::clear_timeouts().
|
inline |
Definition at line 156 of file service/service.h.
Referenced by ServiceProtocolProcessor< PackingTraits >::count_timeouts().
|
inline |
Definition at line 182 of file service/service.h.
Referenced by ServiceContext::TimeoutHandler::execute().
|
inline |
Definition at line 176 of file service/service.h.
References EventLoop::remove_handler.
Referenced by ServiceProtocolProcessor< PackingTraits >::cancel_timeout(), clear_timeouts(), and ServiceContext::TimeoutHandler::handle_timeout().
The documentation for this class was generated from the following file: