#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 35 of file EventLoop.h.
Member Typedef Documentation
typedef int EventLoop::EventIO |
Definition at line 41 of file EventLoop.h.
Constructor & Destructor Documentation
|
explicitdefault |
Member Function Documentation
unsigned int EventLoop::count_handlers | ( | ) |
Definition at line 76 of file EventLoop.cc.
unsigned int EventLoop::count_io_handlers | ( | ) |
Definition at line 80 of file EventLoop.cc.
bool EventLoop::running | ( | ) |
Definition at line 84 of file EventLoop.cc.
void EventLoop::start | ( | ) |
Definition at line 157 of file EventLoop.cc.
References EventInfo::error_event(), EventHandler::event_descriptor(), EventHandler::expiration(), EventHandler::handle_error(), EventHandler::handle_hangup(), EventHandler::handle_read(), EventHandler::handle_timeout(), EventHandler::handle_write(), EventInfo::hangup_event(), EventHandler::has_timeout(), EventInfo::read_event(), EventHandler::timeout(), EventInfo::timeout_event(), and EventInfo::write_event().
Referenced by service_main(), and ServiceEventHandler< PP >::start().
void EventLoop::stop | ( | ) |
Definition at line 257 of file EventLoop.cc.
Member Data Documentation
|
static |
Definition at line 46 of file EventLoop.h.
Referenced by EventInfo::error_event().
|
static |
Definition at line 47 of file EventLoop.h.
Referenced by EventInfo::hangup_event().
|
static |
Definition at line 43 of file EventLoop.h.
Referenced by ServiceContext::add_timeout(), and ServiceContext::TimeoutHandler::execute().
|
static |
Definition at line 38 of file EventLoop.h.
|
static |
Definition at line 39 of file EventLoop.h.
|
static |
Definition at line 44 of file EventLoop.h.
Referenced by EventInfo::read_event(), and ServiceEventHandler< PP >::start().
void EventLoop::remove_handler |
Definition at line 67 of file EventLoop.h.
Referenced by ServiceEventHandler< PP >::remove_handler(), and ServiceContext::remove_timeout().
|
static |
Definition at line 45 of file EventLoop.h.
Referenced by EventInfo::write_event().
The documentation for this class was generated from the following files: