diff options
Diffstat (limited to 'TAO/tao/Codeset/Codeset_Service_Context_Handler.cpp')
-rw-r--r-- | TAO/tao/Codeset/Codeset_Service_Context_Handler.cpp | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/TAO/tao/Codeset/Codeset_Service_Context_Handler.cpp b/TAO/tao/Codeset/Codeset_Service_Context_Handler.cpp new file mode 100644 index 00000000000..58b0aa53c46 --- /dev/null +++ b/TAO/tao/Codeset/Codeset_Service_Context_Handler.cpp @@ -0,0 +1,45 @@ +// $Id$ + +#include "tao/Codeset/Codeset_Service_Context_Handler.h" + +ACE_RCSID (Codeset, + Codeset_Service_Context_Handler, + "$Id$") + +#include "tao/CDR.h" +#include "tao/Transport.h" +#include "tao/ORB_Core.h" +#include "tao/operation_details.h" +#include "tao/Codeset_Manager.h" + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +int +TAO_Codeset_Service_Context_Handler::process_service_context ( + TAO_Transport&, + const IOP::ServiceContext&) +{ + return 0; +} + +int +TAO_Codeset_Service_Context_Handler::generate_service_context ( + TAO_Stub *, + TAO_Transport& transport, + TAO_Operation_Details &opdetails, + TAO_Target_Specification &, + TAO_OutputCDR &) +{ + if (transport.first_request ()) + { + TAO_Codeset_Manager * const csm = transport.orb_core ()->codeset_manager (); + if (csm) + { + csm->generate_service_context (opdetails, transport); + } + } + + return 0; +} + +TAO_END_VERSIONED_NAMESPACE_DECL |