Public Member Functions | Private Attributes

TAO_Thread_Per_Connection_Handler Class Reference

Definition for the thread-per-connection strategy. More...

#include <Thread_Per_Connection_Handler.h>

Inheritance diagram for TAO_Thread_Per_Connection_Handler:
Inheritance graph
[legend]
Collaboration diagram for TAO_Thread_Per_Connection_Handler:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TAO_Thread_Per_Connection_Handler (TAO_Connection_Handler *ch, TAO_ORB_Core *oc)
 ~TAO_Thread_Per_Connection_Handler (void)
virtual int svc (void)
 Template hook method that the thread uses...
virtual int open (void *)
virtual int close (u_long)

Private Attributes

TAO_Connection_Handlerch_

Detailed Description

Definition for the thread-per-connection strategy.

This object acts as an active object, encapsulating the protocol specific handler which the active thread uses to process incoming messages.

Definition at line 44 of file Thread_Per_Connection_Handler.h.


Constructor & Destructor Documentation

TAO_Thread_Per_Connection_Handler::TAO_Thread_Per_Connection_Handler ( TAO_Connection_Handler ch,
TAO_ORB_Core oc 
)

Definition at line 15 of file Thread_Per_Connection_Handler.cpp.

  : ACE_Task_Base (oc->thr_mgr ())
  , ch_ (ch)
{
  this->ch_->transport ()->add_reference ();
}

TAO_Thread_Per_Connection_Handler::~TAO_Thread_Per_Connection_Handler ( void   ) 

Definition at line 24 of file Thread_Per_Connection_Handler.cpp.

{
  this->ch_->close_connection ();
  this->ch_->transport ()->remove_reference ();
}


Member Function Documentation

int TAO_Thread_Per_Connection_Handler::close ( u_long   )  [virtual]

Reimplemented from ACE_Task_Base.

Definition at line 47 of file Thread_Per_Connection_Handler.cpp.

{
  delete this;

  return 0;
}

int TAO_Thread_Per_Connection_Handler::open ( void *  v  )  [virtual]

Reimplemented from ACE_Task_Base.

Definition at line 41 of file Thread_Per_Connection_Handler.cpp.

{
  return this->ch_->open_handler (v);
}

int TAO_Thread_Per_Connection_Handler::svc ( void   )  [virtual]

Template hook method that the thread uses...

Please see the documentation in ace/Task.h for details.

Reimplemented from ACE_Task_Base.

Definition at line 31 of file Thread_Per_Connection_Handler.cpp.

{
  ACE::clr_flags (this->ch_->transport ()->event_handler_i ()->get_handle (),
                  ACE_NONBLOCK);

  // Call the implementation here
  return this->ch_->svc_i ();
}


Member Data Documentation

Pointer to protocsol specific code that does the bunch of the job.

Definition at line 63 of file Thread_Per_Connection_Handler.h.


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