3 //=============================================================================
5 * @file Network_Priority_Hook.h
7 * Provides default network priority hook for use by the POA
9 * @author Jaiganesh Balasubramanian <jai@dre.vanderbilt.edu>
10 * @author Johnny Willemsen <jwillemsen@remedy.nl>
12 //=============================================================================
15 #ifndef TAO_NETWORK_PRIORITY_HOOK_H
16 #define TAO_NETWORK_PRIORITY_HOOK_H
18 #include /**/ "ace/pre.h"
20 #include "portableserver_export.h"
22 #if !defined (ACE_LACKS_PRAGMA_ONCE)
24 #endif /* ACE_LACKS_PRAGMA_ONCE */
26 #include "tao/Versioned_Namespace.h"
27 #include "tao/orbconf.h"
28 #include "ace/Service_Object.h"
29 #include "ace/Service_Config.h"
30 #include "tao/Basic_Types.h"
32 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
34 class TAO_POA_Policy_Set
;
36 class TAO_ServerRequest
;
38 class TAO_PortableServer_Export TAO_Network_Priority_Hook
39 : public ACE_Service_Object
42 virtual ~TAO_Network_Priority_Hook();
44 virtual void update_network_priority (TAO_Root_POA
& poa
,
45 TAO_POA_Policy_Set
& poa_policy_set
);
48 virtual void set_dscp_codepoint (TAO_ServerRequest
&req
,
51 /// Static initializer ensures the factory is loaded
52 static int initialize ();
57 TAO_Requires_Network_Priority_Hook
=
58 TAO_Network_Priority_Hook::initialize ();
60 ACE_STATIC_SVC_DECLARE (TAO_Network_Priority_Hook
)
61 ACE_FACTORY_DECLARE (TAO_PortableServer
, TAO_Network_Priority_Hook
)
63 TAO_END_VERSIONED_NAMESPACE_DECL
65 #include /**/ "ace/post.h"
67 #endif /* TAO_NETWORK_PRIORITY_HOOK_H */