#include <service.h>

Public Member Functions |
|
| TimeoutHandler (ServiceContext &context, const timeout_handler &handler, bool once) | |
| virtual | ~TimeoutHandler () |
| 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 101 of file service/service.h.
Constructor & Destructor Documentation
| service::ServiceContext::TimeoutHandler::TimeoutHandler | ( | ServiceContext & | context, |
| const timeout_handler & | handler, | ||
| bool | once | ||
| ) | [inline] |
Definition at line 108 of file service/service.h.
| virtual service::ServiceContext::TimeoutHandler::~TimeoutHandler | ( | ) | [inline, virtual] |
Definition at line 113 of file service/service.h.
Member Function Documentation
| const TimeoutHandler* service::ServiceContext::TimeoutHandler::address | ( | ) | const [inline] |
Definition at line 133 of file service/service.h.
| virtual int service::EventHandler::event_descriptor | ( | ) | const [inline, virtual, inherited] |
Reimplemented in service::ServiceEventHandler< PP >.
Definition at line 75 of file EventHandler.h.
Referenced by service::EventLoop::start().
| void service::ServiceContext::TimeoutHandler::execute | ( | ) | [inline] |
Definition at line 125 of file service/service.h.
| const TimeValue& service::EventHandler::expiration | ( | ) | const [inline, protected, inherited] |
Definition at line 61 of file EventHandler.h.
Referenced by service::EventLoop::start().
| virtual void service::EventHandler::handle_error | ( | const EventInfo & | info | ) | [inline, virtual, inherited] |
Definition at line 91 of file EventHandler.h.
Referenced by service::EventLoop::start().
| virtual void service::EventHandler::handle_hangup | ( | const EventInfo & | info | ) | [inline, virtual, inherited] |
Definition at line 93 of file EventHandler.h.
Referenced by service::EventLoop::start().
| virtual void service::EventHandler::handle_read | ( | const EventInfo & | info | ) | [inline, virtual, inherited] |
Reimplemented in service::ServiceEventHandler< PP >.
Definition at line 83 of file EventHandler.h.
Referenced by service::EventLoop::start().
| virtual void service::ServiceContext::TimeoutHandler::handle_timeout | ( | const EventInfo & | info | ) | [inline, virtual] |
Reimplemented from service::EventHandler.
Definition at line 115 of file service/service.h.
| virtual void service::EventHandler::handle_write | ( | const EventInfo & | info | ) | [inline, virtual, inherited] |
Definition at line 85 of file EventHandler.h.
Referenced by service::EventLoop::start().
| bool service::EventHandler::has_timeout | ( | ) | const [inline, protected, inherited] |
Definition at line 65 of file EventHandler.h.
References utility::InfiniteTimeValue.
Referenced by service::EventLoop::start().
| bool service::ServiceContext::TimeoutHandler::once | ( | ) | [inline] |
Definition at line 129 of file service/service.h.
| const TimeValue& service::EventHandler::timeout | ( | ) | const [inline, protected, inherited] |
Definition at line 57 of file EventHandler.h.
Referenced by service::EventLoop::start().
Member Data Documentation
const int service::EventHandler::NoDescriptor = -1 [static, inherited] |
Definition at line 71 of file EventHandler.h.
The documentation for this class was generated from the following file: