TAO_Accept_Strategy< SVC_HANDLER, ACE_PEER_ACCEPTOR_1 > Class Template Reference

#include <Acceptor_Impl.h>

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

List of all members.

Public Member Functions

 TAO_Accept_Strategy (TAO_ORB_Core *orb_core)
 Constructor.
int open (const ACE_PEER_ACCEPTOR_ADDR &local_addr, bool restart=false)
int accept_svc_handler (SVC_HANDLER *svc_handler)

Protected Types

typedef ACE_Accept_Strategy
< SVC_HANDLER,
ACE_PEER_ACCEPTOR_2 > 
ACCEPT_STRATEGY_BASE
 Base class.

Protected Attributes

TAO_ORB_Coreorb_core_
 Pointer to the ORB Core.

Detailed Description

template<class SVC_HANDLER, ACE_PEER_ACCEPTOR_1>
class TAO_Accept_Strategy< SVC_HANDLER, ACE_PEER_ACCEPTOR_1 >

Definition at line 82 of file Acceptor_Impl.h.


Member Typedef Documentation

template<class SVC_HANDLER , ACE_PEER_ACCEPTOR_1 >
typedef ACE_Accept_Strategy<SVC_HANDLER, ACE_PEER_ACCEPTOR_2> TAO_Accept_Strategy< SVC_HANDLER, ACE_PEER_ACCEPTOR_1 >::ACCEPT_STRATEGY_BASE [protected]

Base class.

Definition at line 100 of file Acceptor_Impl.h.


Constructor & Destructor Documentation

template<class SVC_HANDLER , ACE_PEER_ACCEPTOR_1 >
TAO_Accept_Strategy< SVC_HANDLER, ACE_PEER_ACCEPTOR_1 >::TAO_Accept_Strategy ( TAO_ORB_Core orb_core  )  [inline]

Constructor.

Definition at line 195 of file Acceptor_Impl.cpp.

00196   : orb_core_ (orb_core)
00197 {
00198 }


Member Function Documentation

template<class SVC_HANDLER , ACE_PEER_ACCEPTOR_1 >
int TAO_Accept_Strategy< SVC_HANDLER, ACE_PEER_ACCEPTOR_1 >::accept_svc_handler ( SVC_HANDLER *  svc_handler  )  [inline, virtual]

Delegates to the <accept> method of the PEER_ACCEPTOR. If the process runs out of handles, purge some "old" connections.

Reimplemented from ACE_Accept_Strategy< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >.

Definition at line 208 of file Acceptor_Impl.cpp.

00209 {
00210   int const result = ACCEPT_STRATEGY_BASE::accept_svc_handler (svc_handler);
00211   if (result == -1)
00212     {
00213       svc_handler->transport ()->remove_reference ();
00214 
00215       // #REFCOUNT# is zero at this point.
00216     }
00217 
00218   return result;
00219 }

template<class SVC_HANDLER , ACE_PEER_ACCEPTOR_1 >
int TAO_Accept_Strategy< SVC_HANDLER, ACE_PEER_ACCEPTOR_1 >::open ( const ACE_PEER_ACCEPTOR_ADDR &  local_addr,
bool  restart = false 
) [inline, virtual]

Initialize the <peer_acceptor_> with local_addr. If the process runs out of handles, purge some "old" connections.

Reimplemented from ACE_Accept_Strategy< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >.

Definition at line 201 of file Acceptor_Impl.cpp.

00203 {
00204   return ACCEPT_STRATEGY_BASE::open (local_addr, restart);
00205 }


Member Data Documentation

template<class SVC_HANDLER , ACE_PEER_ACCEPTOR_1 >
TAO_ORB_Core* TAO_Accept_Strategy< SVC_HANDLER, ACE_PEER_ACCEPTOR_1 >::orb_core_ [protected]

Pointer to the ORB Core.

Definition at line 103 of file Acceptor_Impl.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Sun Nov 22 23:25:59 2009 for TAO by  doxygen 1.6.1