Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / PortableServer / Network_Priority_Hook.cpp
blob50efd1ee5af297b6afcfe09105ef85fa85747ad3
1 #include "tao/PortableServer/Network_Priority_Hook.h"
2 #include "tao/PortableServer/Root_POA.h"
3 #include "tao/PortableServer/POA_Cached_Policies.h"
5 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
7 TAO_Network_Priority_Hook::~TAO_Network_Priority_Hook()
11 void
12 TAO_Network_Priority_Hook::update_network_priority (
13 TAO_Root_POA &poa, TAO_POA_Policy_Set &)
15 poa.cached_policies ().network_priority_model
16 (TAO::Portable_Server::Cached_Policies::NO_NETWORK_PRIORITY);
17 poa.cached_policies ().reply_diffserv_codepoint (0);
18 poa.cached_policies ().request_diffserv_codepoint (0);
21 void
22 TAO_Network_Priority_Hook::set_dscp_codepoint (
23 TAO_ServerRequest &, TAO_Root_POA &)
27 int
28 TAO_Network_Priority_Hook::initialize ()
30 return ACE_Service_Config::process_directive
31 (ace_svc_desc_TAO_Network_Priority_Hook);
34 ACE_FACTORY_DEFINE (TAO_PortableServer, TAO_Network_Priority_Hook)
35 ACE_STATIC_SVC_DEFINE (TAO_Network_Priority_Hook,
36 ACE_TEXT ("TAO_Network_Priority_Hook"),
37 ACE_SVC_OBJ_T,
38 &ACE_SVC_NAME (TAO_Network_Priority_Hook),
39 ACE_Service_Type::DELETE_THIS
40 | ACE_Service_Type::DELETE_OBJ,
42 TAO_END_VERSIONED_NAMESPACE_DECL