#include <DiffServ_Service_Context_Handler.h>
Public Member Functions | |
virtual int | process_service_context (TAO_Transport &transport, const IOP::ServiceContext &context) |
virtual int | generate_service_context (TAO_Stub *stub, TAO_Transport &transport, TAO_Operation_Details &opdetails, TAO_Target_Specification &spec, TAO_OutputCDR &msg) |
Definition at line 26 of file DiffServ_Service_Context_Handler.h.
int TAO_DiffServ_Service_Context_Handler::generate_service_context | ( | TAO_Stub * | stub, | |
TAO_Transport & | transport, | |||
TAO_Operation_Details & | opdetails, | |||
TAO_Target_Specification & | spec, | |||
TAO_OutputCDR & | msg | |||
) | [virtual] |
Implements TAO_Service_Context_Handler.
Definition at line 30 of file DiffServ_Service_Context_Handler.cpp.
{ if (stub) { CORBA::Policy_var cnpp = stub->get_cached_policy (TAO_CACHED_POLICY_CLIENT_NETWORK_PRIORITY); TAO::NetworkPriorityPolicy_var cnp = TAO::NetworkPriorityPolicy::_narrow (cnpp.in ()); if (!CORBA::is_nil (cnp.in ())) { TAO::DiffservCodepoint const reply_diffserv_codepoint = cnp->reply_diffserv_codepoint (); CORBA::Long const rep_dscp_codepoint = reply_diffserv_codepoint; TAO_OutputCDR cdr; if (!(cdr << ACE_OutputCDR::from_boolean (TAO_ENCAP_BYTE_ORDER)) || !(cdr << rep_dscp_codepoint)) { throw CORBA::MARSHAL (); } opdetails.request_service_context ().set_context (IOP::REP_NWPRIORITY, cdr); } } return 0; }
int TAO_DiffServ_Service_Context_Handler::process_service_context | ( | TAO_Transport & | transport, | |
const IOP::ServiceContext & | context | |||
) | [virtual] |
Implements TAO_Service_Context_Handler.
Definition at line 22 of file DiffServ_Service_Context_Handler.cpp.
{
return 0;
}