Savarese Software Research Corporation
EventHandler Class Reference

#include <EventHandler.h>

Inheritance diagram for EventHandler:
Inheritance graph
[legend]

Public Member Functions

virtual  ~EventHandler ()=default
 
virtual int  event_descriptor () const
 
virtual void  handle_read (const EventInfo &info)
 
virtual void  handle_write (const EventInfo &info)
 
virtual void  handle_timeout (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
 

Friends

class  EventLoop
 
class  EventLoopState
 

Detailed Description

Definition at line 42 of file EventHandler.h.

Constructor & Destructor Documentation

§ ~EventHandler()

virtual EventHandler::~EventHandler ( )
virtualdefault

Member Function Documentation

§ event_descriptor()

virtual int EventHandler::event_descriptor ( ) const
inlinevirtual

Reimplemented in ServiceEventHandler< PP >.

Definition at line 74 of file EventHandler.h.

References NoDescriptor.

Referenced by EventLoop::running(), and EventLoop::start().

§ expiration()

const TimeValue& EventHandler::expiration ( ) const
inlineprotected

Definition at line 60 of file EventHandler.h.

Referenced by EventLoop::start().

§ handle_error()

virtual void EventHandler::handle_error ( const EventInfo info )
inlinevirtual

Definition at line 90 of file EventHandler.h.

Referenced by EventLoop::start().

§ handle_hangup()

virtual void EventHandler::handle_hangup ( const EventInfo info )
inlinevirtual

Definition at line 92 of file EventHandler.h.

References __END_NS_SSRC_WISP_SERVICE.

Referenced by EventLoop::start().

§ handle_read()

virtual void EventHandler::handle_read ( const EventInfo info )
inlinevirtual

Reimplemented in ServiceEventHandler< PP >.

Definition at line 82 of file EventHandler.h.

Referenced by EventLoop::start().

§ handle_timeout()

virtual void EventHandler::handle_timeout ( const EventInfo info )
inlinevirtual

Reimplemented in ServiceEventHandler< PP >, and ServiceContext::TimeoutHandler.

Definition at line 86 of file EventHandler.h.

Referenced by EventLoop::start().

§ handle_write()

virtual void EventHandler::handle_write ( const EventInfo info )
inlinevirtual

Definition at line 84 of file EventHandler.h.

Referenced by EventLoop::start().

§ has_timeout()

bool EventHandler::has_timeout ( ) const
inlineprotected

Definition at line 64 of file EventHandler.h.

References InfiniteTimeValue.

Referenced by EventLoop::start().

§ timeout()

const TimeValue& EventHandler::timeout ( ) const
inlineprotected

Definition at line 56 of file EventHandler.h.

Referenced by EventLoop::start().

Friends And Related Function Documentation

§ EventLoop

friend class EventLoop
friend

Definition at line 43 of file EventHandler.h.

§ EventLoopState

friend class EventLoopState
friend

Definition at line 44 of file EventHandler.h.

Member Data Documentation

§ NoDescriptor

const int EventHandler::NoDescriptor = -1
static

Definition at line 70 of file EventHandler.h.

Referenced by event_descriptor(), and EventLoop::running().


The documentation for this class was generated from the following file:

Savarese Software Research Corporation
Copyright © 2006-2012 Savarese Software Research Corporation. All rights reserved.