#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
§ EventIO
| typedef int EventLoop::EventIO |
Definition at line 41 of file EventLoop.h.
Constructor & Destructor Documentation
§ ~EventLoop()
|
explicitdefault |
Member Function Documentation
§ count_handlers()
| unsigned int EventLoop::count_handlers | ( | ) |
Definition at line 76 of file EventLoop.cc.
§ count_io_handlers()
| unsigned int EventLoop::count_io_handlers | ( | ) |
Definition at line 80 of file EventLoop.cc.
§ running()
| bool EventLoop::running | ( | ) |
Definition at line 84 of file EventLoop.cc.
References ByIdentity, EventHandler::event_descriptor(), InfiniteTimeValue, EventHandler::NoDescriptor, and remove_handler.
§ start()
| 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().
§ stop()
| void EventLoop::stop | ( | ) |
Definition at line 257 of file EventLoop.cc.
References __END_NS_SSRC_WISP_SERVICE.
Member Data Documentation
§ Error
|
static |
Definition at line 46 of file EventLoop.h.
Referenced by EventInfo::error_event().
§ Hangup
|
static |
Definition at line 47 of file EventLoop.h.
Referenced by EventInfo::hangup_event().
§ None
|
static |
Definition at line 43 of file EventLoop.h.
Referenced by ServiceContext::add_timeout(), and ServiceContext::TimeoutHandler::execute().
§ Once
|
static |
Definition at line 38 of file EventLoop.h.
§ Persist
|
static |
Definition at line 39 of file EventLoop.h.
§ Read
|
static |
Definition at line 44 of file EventLoop.h.
Referenced by EventInfo::read_event(), and ServiceEventHandler< PP >::start().
§ remove_handler
| void EventLoop::remove_handler |
Definition at line 67 of file EventLoop.h.
Referenced by ServiceEventHandler< PP >::remove_handler(), ServiceContext::remove_timeout(), and running().
§ Write
|
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: