Definition for the thread-per-connection strategy. More...
#include <Thread_Per_Connection_Handler.h>


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_Handler * | ch_ |
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.
| 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 ();
}
| 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 ();
}
Pointer to protocsol specific code that does the bunch of the job.
Definition at line 63 of file Thread_Per_Connection_Handler.h.
1.7.0