Savarese Software Research Corporation
ServiceEventHandler< PP > Class Template Reference

#include <service.h>

Inheritance diagram for ServiceEventHandler< PP >:
Inheritance graph
[legend]

Public Types

typedef PP  protocol_processor
 

Public Member Functions

  WISP_IMPORT_T (protocol_processor, caller_type)
 
  ServiceEventHandler (caller_type &caller)
 
template<typename Initializer >
  ServiceEventHandler (caller_type &caller, const Initializer &initializer)
 
virtual  ~ServiceEventHandler ()=default
 
protocol_processor::State  state () const
 
virtual int  event_descriptor () const
 
virtual void  handle_read (const EventInfo &info)
 
virtual void  handle_timeout (const EventInfo &info)
 
protocol_processor protocol ()
 
void  start (EventLoop &loop, const unsigned int call_timeout)
 
void  stop ()
 
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

virtual void  remove_handler (EventLoop &loop)
 
const TimeValue timeout () const
 
const TimeValue expiration () const
 
bool  has_timeout () const
 

Detailed Description

template<typename PP>
class ServiceEventHandler< PP >

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

Member Typedef Documentation

template<typename PP >
typedef PP ServiceEventHandler< PP >::protocol_processor

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

Constructor & Destructor Documentation

template<typename PP >
ServiceEventHandler< PP >::ServiceEventHandler ( caller_type &  caller )
inlineexplicit

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

template<typename PP >
template<typename Initializer >
ServiceEventHandler< PP >::ServiceEventHandler ( caller_type &  caller,
const Initializer &  initializer 
)
inlineexplicit

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

template<typename PP >
virtual ServiceEventHandler< PP >::~ServiceEventHandler ( )
virtualdefault

Member Function Documentation

template<typename PP >
virtual int ServiceEventHandler< PP >::event_descriptor ( ) const
inlinevirtual

Reimplemented from EventHandler.

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

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

template<typename PP >
virtual void ServiceEventHandler< PP >::handle_read ( const EventInfo info )
inlinevirtual
template<typename PP >
virtual void ServiceEventHandler< PP >::handle_timeout ( const EventInfo info )
inlinevirtual

Reimplemented from EventHandler.

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

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

template<typename PP >
protocol_processor& ServiceEventHandler< PP >::protocol ( )
inline

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

template<typename PP >
virtual void ServiceEventHandler< PP >::remove_handler ( EventLoop loop )
inlineprotectedvirtual

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

References EventLoop::remove_handler.

Referenced by ServiceEventHandler< PP >::handle_read().

template<typename PP >
void ServiceEventHandler< PP >::start ( EventLoop loop,
const unsigned int  call_timeout 
)
inline

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

References EventLoop::Read, and EventLoop::start().

template<typename PP >
protocol_processor::State ServiceEventHandler< PP >::state ( ) const
inline

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

Referenced by ServiceEventHandler< PP >::handle_read().

template<typename PP >
void ServiceEventHandler< PP >::stop ( )
inline

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

const TimeValue& EventHandler::timeout ( ) const
inlineprotectedinherited

Definition at line 56 of file EventHandler.h.

Referenced by EventLoop::start().

template<typename PP >
ServiceEventHandler< PP >::WISP_IMPORT_T ( protocol_processor  ,
caller_type   
)

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.