#include <EventLoop.h>
Public Types |
|
| typedef int | EventIO |
Public Member Functions |
|
| EventLoop() SSRC_DECL_THROW(std | ~EventLoop () |
| unsigned int | count_handlers () |
| unsigned int | count_io_handlers () |
| bool | running () |
| void | start () |
| void | stop () |
Public Attributes |
|
| void add_handler(EventHandler &handler, const int events, const TimeValue &timeout=InfiniteTimeValue, const bool once=Persist) SSRC_DECL_THROW(std void |
remove_handler (EventHandler &handler) |
Static Public Attributes |
|
| static const bool | Once = true |
| static const bool | Persist = false |
| static const EventIO | None = EventPort::None |
| static const EventIO | Read = EventPort::Read |
| static const EventIO | Write = EventPort::Write |
| static const EventIO | Error = EventPort::Error |
| static const EventIO | Hangup = EventPort::Hangup |
Detailed Description
Definition at line 34 of file EventLoop.h.
Member Typedef Documentation
| typedef int service::EventLoop::EventIO |
Definition at line 40 of file EventLoop.h.
Constructor & Destructor Documentation
| service::EventLoop::~EventLoop | ( | ) | [explicit] |
Definition at line 75 of file EventLoop.cc.
Member Function Documentation
| unsigned int service::EventLoop::count_handlers | ( | ) |
Definition at line 77 of file EventLoop.cc.
| unsigned int service::EventLoop::count_io_handlers | ( | ) |
Definition at line 81 of file EventLoop.cc.
| bool service::EventLoop::running | ( | ) |
Definition at line 85 of file EventLoop.cc.
| void service::EventLoop::start | ( | ) |
Definition at line 151 of file EventLoop.cc.
References service::EventInfo::error_event(), service::EventHandler::event_descriptor(), service::EventHandler::expiration(), service::EventHandler::handle_error(), service::EventHandler::handle_hangup(), service::EventHandler::handle_read(), service::EventHandler::handle_timeout(), service::EventHandler::handle_write(), service::EventInfo::hangup_event(), service::EventHandler::has_timeout(), service::EventInfo::read_event(), service::EventHandler::timeout(), service::EventInfo::timeout_event(), and service::EventInfo::write_event().
Referenced by service::ServiceEventHandler< PP >::start().
| void service::EventLoop::stop | ( | ) |
Definition at line 251 of file EventLoop.cc.
Member Data Documentation
const EventLoop::EventIO service::EventLoop::Error = EventPort::Error [static] |
Definition at line 45 of file EventLoop.h.
const EventLoop::EventIO service::EventLoop::Hangup = EventPort::Hangup [static] |
Definition at line 46 of file EventLoop.h.
const EventLoop::EventIO service::EventLoop::None = EventPort::None [static] |
Definition at line 42 of file EventLoop.h.
const bool service::EventLoop::Once = true [static] |
Definition at line 37 of file EventLoop.h.
const bool service::EventLoop::Persist = false [static] |
Definition at line 38 of file EventLoop.h.
const EventLoop::EventIO service::EventLoop::Read = EventPort::Read [static] |
Definition at line 43 of file EventLoop.h.
Definition at line 61 of file EventLoop.h.
Referenced by service::ServiceEventHandler< PP >::remove_handler().
const EventLoop::EventIO service::EventLoop::Write = EventPort::Write [static] |
Definition at line 44 of file EventLoop.h.
The documentation for this class was generated from the following files: