TAO  2.3.3
Public Member Functions | Private Attributes | List of all members
TAO_Strategy_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_1 > Class Template Reference

#include <Transport_Acceptor.h>

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

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 *)
 
- Public Member Functions inherited from ACE_Strategy_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >
 ACE_Strategy_Acceptor (const ACE_TCHAR service_name[]=0, const ACE_TCHAR service_description[]=0, int use_select=1, int reuse_addr=1)
 
 ACE_Strategy_Acceptor (const typename PEER_ACCEPTOR::PEER_ADDR &local_addr, ACE_Reactor *=ACE_Reactor::instance(), ACE_Creation_Strategy< SVC_HANDLER > *=0, ACE_Accept_Strategy< SVC_HANDLER, PEER_ACCEPTOR > *=0, ACE_Concurrency_Strategy< SVC_HANDLER > *=0, ACE_Scheduling_Strategy< SVC_HANDLER > *=0, const ACE_TCHAR service_name[]=0, const ACE_TCHAR service_description[]=0, int use_select=1, int reuse_addr=1)
 
virtual int open (const typename PEER_ACCEPTOR::PEER_ADDR &local_addr, ACE_Reactor *reactor, int flags=0, int use_select=1, int reuse_addr=1)
 
virtual int open (const typename PEER_ACCEPTOR::PEER_ADDR &, ACE_Reactor *=ACE_Reactor::instance(), ACE_Creation_Strategy< SVC_HANDLER > *=0, ACE_Accept_Strategy< SVC_HANDLER, PEER_ACCEPTOR > *=0, ACE_Concurrency_Strategy< SVC_HANDLER > *=0, ACE_Scheduling_Strategy< SVC_HANDLER > *=0, const ACE_TCHAR *service_name=0, const ACE_TCHAR *service_description=0, int use_select=1, int reuse_addr=1)
 
virtual ~ACE_Strategy_Acceptor (void)
 
virtual operator PEER_ACCEPTOR & () const
 
virtual PEER_ACCEPTOR & acceptor (void) const
 
virtual ACE_HANDLE get_handle (void) const
 
void dump (void) const
 
virtual int suspend (void)
 
virtual int resume (void)
 
- Public Member Functions inherited from ACE_Acceptor< class, class >
 ACE_Acceptor (ACE_Reactor *=0, int use_select=1)
 
 ACE_Acceptor (const typename PEER_ACCEPTOR::PEER_ADDR &local_addr, ACE_Reactor *reactor=ACE_Reactor::instance(), int flags=0, int use_select=1, int reuse_addr=1)
 
virtual ~ACE_Acceptor (void)
 
virtual int close (void)
 
void dump (void) const
 
- Public Member Functions inherited from ACE_Service_Object
 ACE_Service_Object (ACE_Reactor *=0)
 
virtual ~ACE_Service_Object (void)
 
- Public Member Functions inherited from ACE_Event_Handler
virtual ~ACE_Event_Handler (void)
 
virtual void set_handle (ACE_HANDLE)
 
virtual int priority (void) const
 
virtual void priority (int priority)
 
virtual int handle_output (ACE_HANDLE fd=ACE_INVALID_HANDLE)
 
virtual int handle_exception (ACE_HANDLE fd=ACE_INVALID_HANDLE)
 
virtual int handle_exit (ACE_Process *)
 
virtual int resume_handler (void)
 
virtual int handle_qos (ACE_HANDLE=ACE_INVALID_HANDLE)
 
virtual int handle_group_qos (ACE_HANDLE=ACE_INVALID_HANDLE)
 
virtual void reactor (ACE_Reactor *reactor)
 
virtual ACE_Reactorreactor (void) const
 
virtual ACE_Reactor_Timer_Interfacereactor_timer_interface (void) const
 
virtual Reference_Count add_reference (void)
 
virtual Reference_Count remove_reference (void)
 
Reference_Counting_Policyreference_counting_policy (void)
 
- Public Member Functions inherited from ACE_Shared_Object
 ACE_Shared_Object (void)
 
virtual ~ACE_Shared_Object (void)
 

Private Attributes

TAO_Acceptoracceptor_
 

Additional Inherited Members

- Public Types inherited from ACE_Strategy_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >
typedef ACE_Creation_Strategy< SVC_HANDLER > creation_strategy_type
 
typedef ACE_Accept_Strategy< SVC_HANDLER, PEER_ACCEPTOR > accept_strategy_type
 
typedef ACE_Concurrency_Strategy< SVC_HANDLER > concurrency_strategy_type
 
typedef ACE_Scheduling_Strategy< SVC_HANDLER > scheduling_strategy_type
 
typedef ACE_Acceptor< SVC_HANDLER, PEER_ACCEPTOR > base_type
 
typedef ACE_Creation_Strategy< SVC_HANDLER > CREATION_STRATEGY
 
typedef ACE_Accept_Strategy< SVC_HANDLER, PEER_ACCEPTOR > ACCEPT_STRATEGY
 
typedef ACE_Concurrency_Strategy< SVC_HANDLER > CONCURRENCY_STRATEGY
 
typedef ACE_Scheduling_Strategy< SVC_HANDLER > SCHEDULING_STRATEGY
 
- Public Types inherited from ACE_Acceptor< class, class >
typedef PEER_ACCEPTOR::PEER_ADDR addr_type
 
typedef PEER_ACCEPTOR acceptor_type
 
typedef SVC_HANDLER handler_type
 
typedef SVC_HANDLER::stream_type stream_type
 
- Public Types inherited from ACE_Event_Handler
typedef long Reference_Count
 
- Static Public Member Functions inherited from ACE_Event_Handler
static ACE_THR_FUNC_RETURN read_adapter (void *event_handler)
 
static int register_stdin_handler (ACE_Event_Handler *eh, ACE_Reactor *reactor, ACE_Thread_Manager *thr_mgr, int flags=THR_DETACHED)
 
static int remove_stdin_handler (ACE_Reactor *reactor, ACE_Thread_Manager *thr_mgr)
 
- Public Attributes inherited from ACE_Strategy_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >
 ACE_ALLOC_HOOK_DECLARE
 
- Public Attributes inherited from ACE_Acceptor< class, class >
 ACE_ALLOC_HOOK_DECLARE
 
- Public Attributes inherited from ACE_Event_Handler
 LO_PRIORITY
 
 HI_PRIORITY
 
 NULL_MASK
 
 READ_MASK
 
 WRITE_MASK
 
 EXCEPT_MASK
 
 ACCEPT_MASK
 
 CONNECT_MASK
 
 TIMER_MASK
 
 QOS_MASK
 
 GROUP_QOS_MASK
 
 SIGNAL_MASK
 
 ALL_EVENTS_MASK
 
 RWE_MASK
 
 DONT_CALL
 
 ACE_EVENT_HANDLER_NOT_RESUMED
 
 ACE_REACTOR_RESUMES_HANDLER
 
 ACE_APPLICATION_RESUMES_HANDLER
 
- Protected Types inherited from ACE_Event_Handler
typedef ACE_Atomic_Op< ACE_SYNCH_MUTEX, Reference_CountAtomic_Reference_Count
 
- Protected Member Functions inherited from ACE_Strategy_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >
virtual int fini (void)
 
virtual int info (ACE_TCHAR **buf, size_t) const
 
virtual int make_svc_handler (SVC_HANDLER *&)
 
virtual int accept_svc_handler (SVC_HANDLER *svc_handler)
 
virtual int activate_svc_handler (SVC_HANDLER *svc_handler)
 
virtual int handle_close (ACE_HANDLE=ACE_INVALID_HANDLE, ACE_Reactor_Mask=ACE_Event_Handler::ALL_EVENTS_MASK)
 
virtual int handle_signal (int signum, siginfo_t *, ucontext_t *)
 
- Protected Member Functions inherited from ACE_Acceptor< class, class >
virtual int handle_input (ACE_HANDLE)
 
virtual int init (int argc, ACE_TCHAR *argv[])
 
- Protected Member Functions inherited from ACE_Event_Handler
 ACE_Event_Handler (ACE_Reactor *=0, int priority=ACE_Event_Handler::LO_PRIORITY)
 
- Protected Attributes inherited from ACE_Strategy_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >
CREATION_STRATEGYcreation_strategy_
 
bool delete_creation_strategy_
 
ACCEPT_STRATEGYaccept_strategy_
 
bool delete_accept_strategy_
 
CONCURRENCY_STRATEGYconcurrency_strategy_
 
bool delete_concurrency_strategy_
 
SCHEDULING_STRATEGYscheduling_strategy_
 
bool delete_scheduling_strategy_
 
ACE_TCHARservice_name_
 
ACE_TCHARservice_description_
 
PEER_ACCEPTOR::PEER_ADDR service_addr_
 
- Protected Attributes inherited from ACE_Acceptor< class, class >
PEER_ACCEPTOR peer_acceptor_
 
PEER_ACCEPTOR::PEER_ADDR peer_acceptor_addr_
 
int flags_
 
int use_select_
 
int reuse_addr_
 
- Protected Attributes inherited from ACE_Event_Handler
Atomic_Reference_Count reference_count_
 

Detailed Description

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

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.

Constructor & Destructor Documentation

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

Member Function Documentation

template<class SVC_HANDLER, ACE_PEER_ACCEPTOR_1 >
virtual int TAO_Strategy_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_1 >::handle_accept_error ( void  )
inlinevirtual

Reimplemented from ACE_Acceptor< class, class >.

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

Reimplemented from ACE_Event_Handler.

Member Data Documentation

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

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