Savarese Software Research Corporation
service::ServiceEventHandler< PP > Class Template Reference

#include <service.h>

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

List of all members.

Public Types

typedef PP  protocol_processor
typedef
protocol_processor::caller_type 
caller_type

Public Member Functions

  ServiceEventHandler (caller_type &caller)
template<typename Initializer >
  ServiceEventHandler (caller_type &caller, const Initializer &initializer)
virtual  ~ServiceEventHandler ()
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 service::ServiceEventHandler< PP >

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


Member Typedef Documentation

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

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

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

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


Constructor & Destructor Documentation

template<typename PP >
service::ServiceEventHandler< PP >::ServiceEventHandler ( caller_type caller ) [inline, explicit]

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

template<typename PP >
template<typename Initializer >
service::ServiceEventHandler< PP >::ServiceEventHandler ( caller_type caller,
const Initializer &  initializer 
) [inline, explicit]

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

template<typename PP >
virtual service::ServiceEventHandler< PP >::~ServiceEventHandler ( ) [inline, virtual]

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


Member Function Documentation

template<typename PP >
virtual int service::ServiceEventHandler< PP >::event_descriptor ( ) const [inline, virtual]

Reimplemented from service::EventHandler.

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

const TimeValue& service::EventHandler::expiration ( ) const [inline, protected, inherited]

Definition at line 61 of file EventHandler.h.

Referenced by service::EventLoop::start().

virtual void service::EventHandler::handle_error ( const EventInfo info ) [inline, virtual, inherited]

Definition at line 91 of file EventHandler.h.

Referenced by service::EventLoop::start().

virtual void service::EventHandler::handle_hangup ( const EventInfo info ) [inline, virtual, inherited]

Definition at line 93 of file EventHandler.h.

Referenced by service::EventLoop::start().

template<typename PP >
virtual void service::ServiceEventHandler< PP >::handle_read ( const EventInfo info ) [inline, virtual]

Reimplemented from service::EventHandler.

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

References service::EventInfo::event_loop(), and protocol::TwoWayResponse.

template<typename PP >
virtual void service::ServiceEventHandler< PP >::handle_timeout ( const EventInfo info ) [inline, virtual]

Reimplemented from service::EventHandler.

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

virtual void service::EventHandler::handle_write ( const EventInfo info ) [inline, virtual, inherited]

Definition at line 85 of file EventHandler.h.

Referenced by service::EventLoop::start().

bool service::EventHandler::has_timeout ( ) const [inline, protected, inherited]

Definition at line 65 of file EventHandler.h.

References utility::InfiniteTimeValue.

Referenced by service::EventLoop::start().

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

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

template<typename PP >
virtual void service::ServiceEventHandler< PP >::remove_handler ( EventLoop loop ) [inline, protected, virtual]

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

References service::EventLoop::remove_handler.

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

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

References service::EventLoop::start().

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

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

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

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

const TimeValue& service::EventHandler::timeout ( ) const [inline, protected, inherited]

Definition at line 57 of file EventHandler.h.

Referenced by service::EventLoop::start().


Member Data Documentation

const int service::EventHandler::NoDescriptor = -1 [static, inherited]

Definition at line 71 of file EventHandler.h.


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

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