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            "$Id: IIOP_SSL_Connection_Handler.cpp 78931 2007-07-18 09:59:36Z johnnyw $")
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   : TAO_IIOP_Connection_Handler (orb_core)
00071 {
00072   // Delete the transport with TAO_IIOP_Connection_Handler.
00073   delete this->transport ();
00074 
00075   IIOP_SSL_Transport* specific_transport = 0;
00076   ACE_NEW (specific_transport,
00077            IIOP_SSL_Transport (this,
00078                                orb_core));
00079 
00080   // store this pointer
00081   this->transport (specific_transport);
00082 }
00083 
00084 TAO::IIOP_SSL_Connection_Handler::~IIOP_SSL_Connection_Handler (void)
00085 {
00086 }
00087 
00088 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Sun Jan 27 16:12:22 2008 for TAO_SSLIOP by doxygen 1.3.6