IIOP_SSL_Connection_Handler.cpp

Go to the documentation of this file.
00001 #include "orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.h"
00002 #include "orbsvcs/SSLIOP/IIOP_SSL_Transport.h"
00003 #include "orbsvcs/SSLIOP/SSLIOP_Connection_Handler.h"
00004 #include "tao/Timeprobe.h"
00005 #include "tao/ORB_Core.h"
00006 #include "tao/ORB.h"
00007 #include "tao/debug.h"
00008 
00009 
00010 ACE_RCSID (SSLIOP,
00011            IIOP_SSL_Connection_Handler,
00012            "IIOP_SSL_Connection_Handler.cpp,v 1.12 2006/03/14 06:14:35 jtc Exp")
00013 
00014 
00015 #if !defined (__ACE_INLINE__)
00016 #include "orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.inl"
00017 #endif /* __ACE_INLINE__ */
00018 
00019 #if defined (ACE_ENABLE_TIMEPROBES)
00020 
00021 static const char * const TAO_IIOP_SSL_Connect_Timeprobe_Description[] =
00022 {
00023   "IIOP_SSL_Connection_Handler::handle_input - start",
00024   "IIOP_SSL_Connection_Handler::handle_input - end",
00025 
00026   "IIOP_SSL_Connection_Handler::handle_locate - start",
00027   "IIOP_SSL_Connection_Handler::handle_locate - end",
00028 
00029   "IIOP_SSL_Connection_Handler::receive_request - end",
00030 
00031   "IIOP_SSL_Connection_Handler::send_request - start",
00032   "IIOP_SSL_Connection_Handler::send_request - end"};
00033 
00034 enum
00035 {
00036   // Timeprobe description table start key
00037   TAO_IIOP_SSL_CONNECTION_HANDLER_HANDLE_INPUT_START = 320,
00038   TAO_IIOP_SSL_CONNECTION_HANDLER_HANDLE_INPUT_END,
00039 
00040   TAO_IIOP_SSL_CONNECTION_HANDLER_HANDLE_LOCATE_START,
00041   TAO_IIOP_SSL_CONNECTION_HANDLER_HANDLE_LOCATE_END,
00042 
00043   TAO_IIOP_SSL_CONNECTION_HANDLER_RECEIVE_REQUEST_END
00044 
00045 };
00046 
00047 // Setup Timeprobes
00048 ACE_TIMEPROBE_EVENT_DESCRIPTIONS (TAO_IIOP_SSL_Connect_Timeprobe_Description,
00049                                   TAO_IIOP_SSL_CONNECTION_HANDLER_HANDLE_INPUT_START);
00050 
00051 #endif /* ACE_ENABLE_TIMEPROBES */
00052 
00053 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00054 
00055 TAO::IIOP_SSL_Connection_Handler::IIOP_SSL_Connection_Handler (
00056   ACE_Thread_Manager *t)
00057   : TAO_IIOP_Connection_Handler (t)
00058 {
00059   // This constructor should *never* get called, it is just here to
00060   // make the compiler happy: the default implementation of the
00061   // Creation_Strategy requires a constructor with that signature, we
00062   // don't use that implementation, but some (most?) compilers
00063   // instantiate it anyway.
00064   ACE_ASSERT (0);
00065 }
00066 
00067 
00068 TAO::IIOP_SSL_Connection_Handler::IIOP_SSL_Connection_Handler (
00069   TAO_ORB_Core *orb_core,
00070   CORBA::Boolean /* flag */)
00071   : TAO_IIOP_Connection_Handler (orb_core, 0)
00072 {
00073   // Delete the transport with TAO_IIOP_Connection_Handler.
00074   delete this->transport ();
00075 
00076   IIOP_SSL_Transport* specific_transport = 0;
00077   ACE_NEW (specific_transport,
00078            IIOP_SSL_Transport (this,
00079                                orb_core,
00080                                0));
00081 
00082   // store this pointer
00083   this->transport (specific_transport);
00084 }
00085 
00086 TAO::IIOP_SSL_Connection_Handler::~IIOP_SSL_Connection_Handler (void)
00087 {
00088 }
00089 
00090 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 13:54:12 2006 for TAO_SSLIOP by doxygen 1.3.6