Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TAO_SHMIOP_Connection_Handler Class Reference

Handles requests on a single connection. More...

#include <SHMIOP_Connection_Handler.h>

Inheritance diagram for TAO_SHMIOP_Connection_Handler

Inheritance graph
[legend]
Collaboration diagram for TAO_SHMIOP_Connection_Handler:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_SHMIOP_Connection_Handler (ACE_Thread_Manager* t = 0)
 TAO_SHMIOP_Connection_Handler (TAO_ORB_Core *orb_core, CORBA::Boolean flag, void *arg)
 Constructor. parameter is used by the Acceptor to pass the protocol configuration properties for this connection.

 ~TAO_SHMIOP_Connection_Handler (void)
 Destructor.

virtual int open (void *)
 Called by the <Strategy_Acceptor> when the handler is completely connected. Argument is unused.

virtual int activate (long flags = THR_NEW_LWP, int n_threads = 1, int force_active = 0, long priority = ACE_DEFAULT_THREAD_PRIORITY, int grp_id = -1, ACE_Task_Base *task = 0, ACE_hthread_t thread_handles[] = 0, void *stack[] = 0, size_t stack_size[] = 0, ACE_thread_t thread_names[] = 0)
 = Active object activation method.

virtual int svc (void)
 Only used when the handler is turned into an active object by calling . This serves as the event loop in such cases.

virtual int handle_close (ACE_HANDLE = ACE_INVALID_HANDLE, ACE_Reactor_Mask = ACE_Event_Handler::NULL_MASK)
 Perform appropriate closing.

virtual int handle_output (ACE_HANDLE)
 Documented in ACE_Event_Handler.

virtual int resume_handler (void)
 Overload for resuming handlers..

int add_transport_to_cache (void)
 Add ourselves to Cache.


Protected Methods

virtual int handle_input (ACE_HANDLE = ACE_INVALID_HANDLE)
 = Event Handler overloads Reads a message from the <peer()>, dispatching and servicing it appropriately. handle_input() just delegates on handle_input_i() which timeouts after <max_wait_time>, this is used in thread-per-connection to ensure that server threads eventually exit.


Private Methods

void handle_close_i (void)
 Perform handle close.


Private Attributes

int resume_flag_
 Flag that we will be passing to the event handler to indicate whether the handle will be resumed by the method or not.


Detailed Description

Handles requests on a single connection.

The Connection handler which is common for the Acceptor and the Connector


Constructor & Destructor Documentation

TAO_SHMIOP_Connection_Handler::TAO_SHMIOP_Connection_Handler ( ACE_Thread_Manager * t = 0 )
 

TAO_SHMIOP_Connection_Handler::TAO_SHMIOP_Connection_Handler ( TAO_ORB_Core * orb_core,
CORBA::Boolean flag,
void * arg )
 

Constructor. parameter is used by the Acceptor to pass the protocol configuration properties for this connection.

TAO_SHMIOP_Connection_Handler::~TAO_SHMIOP_Connection_Handler ( void )
 

Destructor.


Member Function Documentation

int TAO_SHMIOP_Connection_Handler::activate ( long flags = THR_NEW_LWP,
int n_threads = 1,
int force_active = 0,
long priority = ACE_DEFAULT_THREAD_PRIORITY,
int grp_id = -1,
ACE_Task_Base * task = 0,
ACE_hthread_t thread_handles[] = 0,
void * stack[] = 0,
size_t stack_size[] = 0,
ACE_thread_t thread_names[] = 0 ) [virtual]
 

= Active object activation method.

Reimplemented from ACE_Task_Base.

int TAO_SHMIOP_Connection_Handler::add_transport_to_cache ( void )
 

Add ourselves to Cache.

int TAO_SHMIOP_Connection_Handler::handle_close ( ACE_HANDLE handle = ACE_INVALID_HANDLE,
ACE_Reactor_Mask close_mask = ACE_Event_Handler::NULL_MASK ) [virtual]
 

Perform appropriate closing.

Reimplemented from ACE_Svc_Handler.

void TAO_SHMIOP_Connection_Handler::handle_close_i ( void ) [private]
 

Perform handle close.

int TAO_SHMIOP_Connection_Handler::handle_input ( ACE_HANDLE fd = ACE_INVALID_HANDLE ) [protected, virtual]
 

= Event Handler overloads Reads a message from the <peer()>, dispatching and servicing it appropriately. handle_input() just delegates on handle_input_i() which timeouts after <max_wait_time>, this is used in thread-per-connection to ensure that server threads eventually exit.

Reimplemented from ACE_Event_Handler.

int TAO_SHMIOP_Connection_Handler::handle_output ( ACE_HANDLE fd ) [virtual]
 

Documented in ACE_Event_Handler.

Reimplemented from ACE_Event_Handler.

int TAO_SHMIOP_Connection_Handler::open ( void * a ) [virtual]
 

Called by the <Strategy_Acceptor> when the handler is completely connected. Argument is unused.

Reimplemented from ACE_Svc_Handler.

int TAO_SHMIOP_Connection_Handler::resume_handler ( void ) [virtual]
 

Overload for resuming handlers..

Reimplemented from ACE_Event_Handler.

int TAO_SHMIOP_Connection_Handler::svc ( void ) [virtual]
 

Only used when the handler is turned into an active object by calling . This serves as the event loop in such cases.

Reimplemented from ACE_Task_Base.


Member Data Documentation

int TAO_SHMIOP_Connection_Handler::resume_flag_ [private]
 

Flag that we will be passing to the event handler to indicate whether the handle will be resumed by the method or not.


The documentation for this class was generated from the following file:
Generated at Wed Nov 21 12:18:43 2001 for TAO_Strategies by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000