TAO_Strategy_Acceptor< SVC_HANDLER, > Class Template Reference

#include <Transport_Acceptor.h>

Inheritance diagram for TAO_Strategy_Acceptor< SVC_HANDLER, >:

Inheritance graph
[legend]
Collaboration diagram for TAO_Strategy_Acceptor< SVC_HANDLER, >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_Strategy_Acceptor (TAO_Acceptor *acceptor)
virtual int handle_accept_error (void)
virtual int handle_timeout (const ACE_Time_Value &, const void *)

Private Attributes

TAO_Acceptoracceptor_

Detailed Description

template<class SVC_HANDLER, ACE_PEER_ACCEPTOR_1>
class TAO_Strategy_Acceptor< SVC_HANDLER, >

This is a drop-in replacement class for the ACE_Strategy_Acceptor. It provides all of the same functionality and the additional functionality of handling accept() errors with some sort of configured action. All of the actual code is in the TAO_Acceptor to avoid multiply-instantiated code that would be, in effect, identical.

It is not declared nested within TAO_Acceptor as I originally wanted because it caused an internal compiler error for the Tornado 2.2.1 compiler.

Definition at line 183 of file Transport_Acceptor.h.


Constructor & Destructor Documentation

template<class SVC_HANDLER, ACE_PEER_ACCEPTOR_1 >
TAO_Strategy_Acceptor< SVC_HANDLER, >::TAO_Strategy_Acceptor ( TAO_Acceptor acceptor  )  [inline]

Definition at line 187 of file Transport_Acceptor.h.

00188    : acceptor_ (acceptor) {
00189   }


Member Function Documentation

template<class SVC_HANDLER, ACE_PEER_ACCEPTOR_1 >
virtual int TAO_Strategy_Acceptor< SVC_HANDLER, >::handle_accept_error ( void   )  [inline, virtual]

Reimplemented from ACE_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >.

Definition at line 191 of file Transport_Acceptor.h.

References TAO_Strategy_Acceptor< SVC_HANDLER, >::acceptor_, and TAO_Acceptor::handle_accept_error().

00191                                          {
00192     return this->acceptor_->handle_accept_error (this);
00193   }

template<class SVC_HANDLER, ACE_PEER_ACCEPTOR_1 >
virtual int TAO_Strategy_Acceptor< SVC_HANDLER, >::handle_timeout ( const ACE_Time_Value ,
const void *   
) [inline, virtual]

Reimplemented from ACE_Event_Handler.

Definition at line 195 of file Transport_Acceptor.h.

References TAO_Strategy_Acceptor< SVC_HANDLER, >::acceptor_, and TAO_Acceptor::handle_expiration().

00196                                            {
00197     return this->acceptor_->handle_expiration (this);
00198   }


Member Data Documentation

template<class SVC_HANDLER, ACE_PEER_ACCEPTOR_1 >
TAO_Acceptor* TAO_Strategy_Acceptor< SVC_HANDLER, >::acceptor_ [private]

Definition at line 201 of file Transport_Acceptor.h.

Referenced by TAO_Strategy_Acceptor< SVC_HANDLER, >::handle_accept_error(), and TAO_Strategy_Acceptor< SVC_HANDLER, >::handle_timeout().


The documentation for this class was generated from the following file:
Generated on Tue Feb 2 17:39:46 2010 for TAO by  doxygen 1.4.7