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

virtual EventHandler::~EventHandler ( )
virtualdefault

Member Function Documentation

virtual int EventHandler::event_descriptor ( ) const
inlinevirtual

Reimplemented in ServiceEventHandler< PP >.

Definition at line 74 of file EventHandler.h.

References NoDescriptor.

Referenced by EventLoop::start().

const TimeValue& EventHandler::expiration ( ) const
inlineprotected

Definition at line 60 of file EventHandler.h.

Referenced by EventLoop::start().

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

Definition at line 90 of file EventHandler.h.

Referenced by EventLoop::start().

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

Definition at line 92 of file EventHandler.h.

Referenced by EventLoop::start().

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().

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().

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

Definition at line 84 of file EventHandler.h.

Referenced by EventLoop::start().

bool EventHandler::has_timeout ( ) const
inlineprotected

Definition at line 64 of file EventHandler.h.

References InfiniteTimeValue.

Referenced by EventLoop::start().

const TimeValue& EventHandler::timeout ( ) const
inlineprotected

Definition at line 56 of file EventHandler.h.

Referenced by EventLoop::start().

Friends And Related Function Documentation

friend class EventLoop
friend

Definition at line 43 of file EventHandler.h.

friend class EventLoopState
friend

Definition at line 44 of file EventHandler.h.

Member Data Documentation

const int EventHandler::NoDescriptor = -1
static

Definition at line 70 of file EventHandler.h.

Referenced by event_descriptor().


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.