3 //=============================================================================
5 * @file DiffServ_Network_Priority_Hook.h
7 * @author Jaiganesh Balasubramanian <jai@dre.vanderbilt.edu>
8 * Johnny Willemsen <jwillemsen@remedy.nl>
10 //=============================================================================
12 #ifndef TAO_DIFFSERV_NETWORK_PRIORITY_HOOK_H
13 #define TAO_DIFFSERV_NETWORK_PRIORITY_HOOK_H
15 #include /**/ "ace/pre.h"
16 #include "ace/Service_Config.h"
18 #include "tao/DiffServPolicy/DiffServPolicy_Export.h"
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 #include "tao/PortableServer/Network_Priority_Hook.h"
26 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
28 class TAO_DiffServPolicy_Export TAO_DiffServ_Network_Priority_Hook
29 : public TAO_Network_Priority_Hook
32 virtual ~TAO_DiffServ_Network_Priority_Hook();
34 /// This function is a hook, that is called from the Root_POA's
35 /// constructor. It allows the POA to cache the server side network
36 /// priority policy, so that it can be used for sending replies with the
37 /// policy-specified DiffServ codepoint.
39 void update_network_priority (TAO_Root_POA
&poa
,
40 TAO_POA_Policy_Set
&poa_policy_set
);
42 /// This function is a hook, that is used by the POA's servant dispatcher
43 /// when it tries to assign DiffServ codepoints on the replies.
45 void set_dscp_codepoint (TAO_ServerRequest
&req
,
50 ACE_STATIC_SVC_DECLARE_EXPORT (TAO_DiffServPolicy
,
51 TAO_DiffServ_Network_Priority_Hook
)
52 ACE_FACTORY_DECLARE (TAO_DiffServPolicy
, TAO_DiffServ_Network_Priority_Hook
)
54 TAO_END_VERSIONED_NAMESPACE_DECL
57 #include /**/ "ace/post.h"
59 #endif /* TAO_DIFFSERV_NETWORK_PRIORITY_HOOK_H */