ACE  6.3.3
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
ACE_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_1 > Class Template Reference

Defines the interface for specifying an active connection establishment strategy for a SVC_HANDLER. More...

#include <Strategies_T.h>

Public Types

typedef ACE_PEER_CONNECTOR_ADDR addr_type
 
typedef ACE_PEER_CONNECTOR connector_type
 
typedef SVC_HANDLER handler_type
 
typedef SVC_HANDLER::stream_type stream_type
 

Public Member Functions

 ACE_Connect_Strategy (void)
 Default constructor. More...
 
virtual ACE_PEER_CONNECTORconnector (void) const
 Return a reference to the <peer_connector_>. More...
 
virtual ~ACE_Connect_Strategy (void)
 
virtual int connect_svc_handler (SVC_HANDLER *&sh, const ACE_PEER_CONNECTOR_ADDR &remote_addr, ACE_Time_Value *timeout, const ACE_PEER_CONNECTOR_ADDR &local_addr, bool reuse_addr, int flags, int perms)
 
virtual int connect_svc_handler (SVC_HANDLER *&sh, SVC_HANDLER *&sh_copy, const ACE_PEER_CONNECTOR_ADDR &remote_addr, ACE_Time_Value *timeout, const ACE_PEER_CONNECTOR_ADDR &local_addr, bool reuse_addr, int flags, int perms)
 
void dump (void) const
 Dump the state of an object. More...
 

Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks. More...
 

Protected Attributes

ACE_PEER_CONNECTOR connector_
 Factory that establishes connections actively. More...
 

Detailed Description

template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1>
class ACE_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_1 >

Defines the interface for specifying an active connection establishment strategy for a SVC_HANDLER.

This class provides a strategy that manages active connection establishment to a server.

Member Typedef Documentation

template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1 >
typedef ACE_PEER_CONNECTOR_ADDR ACE_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_1 >::addr_type
template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1 >
typedef ACE_PEER_CONNECTOR ACE_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_1 >::connector_type
template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1 >
typedef SVC_HANDLER ACE_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_1 >::handler_type
template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1 >
typedef SVC_HANDLER::stream_type ACE_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_1 >::stream_type

Constructor & Destructor Documentation

template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1 >
ACE_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_1 >::ACE_Connect_Strategy ( void  )

Default constructor.

template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1 >
virtual ACE_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_1 >::~ACE_Connect_Strategy ( void  )
virtual

Member Function Documentation

template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1 >
virtual int ACE_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_1 >::connect_svc_handler ( SVC_HANDLER *&  sh,
const ACE_PEER_CONNECTOR_ADDR remote_addr,
ACE_Time_Value timeout,
const ACE_PEER_CONNECTOR_ADDR local_addr,
bool  reuse_addr,
int  flags,
int  perms 
)
virtual

The default behavior delegates to the <connect> method of the <PEER_CONNECTOR::connect>.

Reimplemented in ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_1, MUTEX >, and ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >.

template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1 >
virtual int ACE_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_1 >::connect_svc_handler ( SVC_HANDLER *&  sh,
SVC_HANDLER *&  sh_copy,
const ACE_PEER_CONNECTOR_ADDR remote_addr,
ACE_Time_Value timeout,
const ACE_PEER_CONNECTOR_ADDR local_addr,
bool  reuse_addr,
int  flags,
int  perms 
)
virtual

The default behavior delegates to the <connect> method of the <PEER_CONNECTOR::connect>. Please check the documentation in Connector.h for more details.

Reimplemented in ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_1, MUTEX >, and ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >.

template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1 >
virtual ACE_PEER_CONNECTOR& ACE_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_1 >::connector ( void  ) const
virtual

Return a reference to the <peer_connector_>.

template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1 >
void ACE_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_1 >::dump ( void  ) const

Dump the state of an object.

Member Data Documentation

template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1 >
ACE_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_1 >::ACE_ALLOC_HOOK_DECLARE

Declare the dynamic allocation hooks.

template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1 >
ACE_PEER_CONNECTOR ACE_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_1 >::connector_
protected

Factory that establishes connections actively.


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