Public Member Functions | Protected Types | Protected Attributes

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  ) 

Constructor.

Definition at line 195 of file Acceptor_Impl.cpp.

  : orb_core_ (orb_core)
{
}


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

{
  int const result = ACCEPT_STRATEGY_BASE::accept_svc_handler (svc_handler);
  if (result == -1)
    {
      svc_handler->transport ()->remove_reference ();

      // #REFCOUNT# is zero at this point.
    }

  return result;
}

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

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


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