#include <service.h>
Public Member Functions |
|
TimeoutHandler (ServiceContext &context, const timeout_handler &handler, bool once) | |
virtual | ~TimeoutHandler ()=default |
virtual void | handle_timeout (const EventInfo &info) |
void | execute () |
bool | once () |
const TimeoutHandler * | address () const |
virtual int | event_descriptor () const |
virtual void | handle_read (const EventInfo &info) |
virtual void | handle_write (const EventInfo &info) |
virtual void | handle_error (const EventInfo &info) |
virtual void | handle_hangup (const EventInfo &info) |
Static Public Attributes |
|
static const int | NoDescriptor = -1 |
Protected Member Functions |
|
const TimeValue & | timeout () const |
const TimeValue & | expiration () const |
bool | has_timeout () const |
Detailed Description
Definition at line 100 of file service/service.h.
Constructor & Destructor Documentation
|
inline |
Definition at line 107 of file service/service.h.
|
virtualdefault |
Member Function Documentation
|
inline |
Definition at line 132 of file service/service.h.
|
inlinevirtualinherited |
Reimplemented in ServiceEventHandler< PP >.
Definition at line 74 of file EventHandler.h.
References EventHandler::NoDescriptor.
Referenced by EventLoop::start().
|
inline |
Definition at line 124 of file service/service.h.
References ServiceContext::event_loop(), handle_timeout(), and EventLoop::None.
|
inlineprotectedinherited |
Definition at line 60 of file EventHandler.h.
Referenced by EventLoop::start().
|
inlinevirtualinherited |
Definition at line 90 of file EventHandler.h.
Referenced by EventLoop::start().
|
inlinevirtualinherited |
Definition at line 92 of file EventHandler.h.
Referenced by EventLoop::start().
|
inlinevirtualinherited |
Reimplemented in ServiceEventHandler< PP >.
Definition at line 82 of file EventHandler.h.
Referenced by EventLoop::start().
|
inlinevirtual |
Reimplemented from EventHandler.
Definition at line 114 of file service/service.h.
References ServiceContext::remove_timeout().
Referenced by execute().
|
inlinevirtualinherited |
Definition at line 84 of file EventHandler.h.
Referenced by EventLoop::start().
|
inlineprotectedinherited |
Definition at line 64 of file EventHandler.h.
References InfiniteTimeValue.
Referenced by EventLoop::start().
|
inline |
Definition at line 128 of file service/service.h.
|
inlineprotectedinherited |
Definition at line 56 of file EventHandler.h.
Referenced by EventLoop::start().
Member Data Documentation
|
staticinherited |
Definition at line 70 of file EventHandler.h.
Referenced by EventHandler::event_descriptor().
The documentation for this class was generated from the following file: