Savarese Software Research Corporation
ServiceContext::TimeoutHandler Class Reference

#include <service.h>

Inheritance diagram for ServiceContext::TimeoutHandler:
Inheritance graph
[legend]

Public Member Functions

  TimeoutHandler (ServiceContext &context, const timeout_handler &handler, bool once)
 
virtual  ~TimeoutHandler ()=default
 
virtual void  handle_timeout (const EventInfo &info)
 
void  execute ()
 
bool  once ()
 
const TimeoutHandler address () const
 
virtual int  event_descriptor () const
 
virtual void  handle_read (const EventInfo &info)
 
virtual void  handle_write (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
 

Detailed Description

Definition at line 100 of file service/service.h.

Constructor & Destructor Documentation

ServiceContext::TimeoutHandler::TimeoutHandler ( ServiceContext context,
const timeout_handler handler,
bool  once 
)
inline

Definition at line 107 of file service/service.h.

virtual ServiceContext::TimeoutHandler::~TimeoutHandler ( )
virtualdefault

Member Function Documentation

const TimeoutHandler* ServiceContext::TimeoutHandler::address ( ) const
inline

Definition at line 132 of file service/service.h.

virtual int EventHandler::event_descriptor ( ) const
inlinevirtualinherited

Reimplemented in ServiceEventHandler< PP >.

Definition at line 74 of file EventHandler.h.

References EventHandler::NoDescriptor.

Referenced by EventLoop::start().

void ServiceContext::TimeoutHandler::execute ( )
inline
const TimeValue& EventHandler::expiration ( ) const
inlineprotectedinherited

Definition at line 60 of file EventHandler.h.

Referenced by EventLoop::start().

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

Definition at line 90 of file EventHandler.h.

Referenced by EventLoop::start().

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

Definition at line 92 of file EventHandler.h.

Referenced by EventLoop::start().

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

Reimplemented in ServiceEventHandler< PP >.

Definition at line 82 of file EventHandler.h.

Referenced by EventLoop::start().

virtual void ServiceContext::TimeoutHandler::handle_timeout ( const EventInfo info )
inlinevirtual

Reimplemented from EventHandler.

Definition at line 114 of file service/service.h.

References ServiceContext::remove_timeout().

Referenced by execute().

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

Definition at line 84 of file EventHandler.h.

Referenced by EventLoop::start().

bool EventHandler::has_timeout ( ) const
inlineprotectedinherited

Definition at line 64 of file EventHandler.h.

References InfiniteTimeValue.

Referenced by EventLoop::start().

bool ServiceContext::TimeoutHandler::once ( )
inline

Definition at line 128 of file service/service.h.

const TimeValue& EventHandler::timeout ( ) const
inlineprotectedinherited

Definition at line 56 of file EventHandler.h.

Referenced by EventLoop::start().

Member Data Documentation

const int EventHandler::NoDescriptor = -1
staticinherited

Definition at line 70 of file EventHandler.h.

Referenced by EventHandler::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.