3 // ================================================================
5 * @file DiffServPolicy.pidl
7 * This file contains TAO-specific idl interfaces for adding
8 * network priority or DiffServ support (not part of CORBA
11 * The steps to regenerate the code are as follows:
13 * 1. Run the tao_idl compiler on the pidl file. The command used for
17 * -o orig -Gp -Gd -Ge 1 -GA -SS -Sci
18 * -Wb,export_macro=TAO_Export
19 * -Wb,pre_include="ace/pre.h"
20 * -Wb,post_include="ace/post.h"
21 * TAO_Network_Priority_Policy.pidl
23 * 2. The files are ready to use
25 // ================================================================
27 #ifndef TAO_DIFFSERV_POLICY_IDL
28 #define TAO_DIFFSERV_POLICY_IDL
30 #include "tao/Policy.pidl"
36 typedef long DiffservCodepoint;
38 enum NetworkPriorityModel
40 CLIENT_PROPAGATED_NETWORK_PRIORITY,
41 SERVER_DECLARED_NETWORK_PRIORITY,
45 const CORBA::PolicyType SERVER_NETWORK_PRIORITY_TYPE = 0x54410002;
46 const CORBA::PolicyType CLIENT_NETWORK_PRIORITY_TYPE = 0x54410003;
47 const CORBA::PolicyType NETWORK_PRIORITY_TYPE = 0x54410004;
49 local interface NetworkPriorityPolicy : CORBA::Policy
51 attribute NetworkPriorityModel network_priority_model;
52 attribute DiffservCodepoint request_diffserv_codepoint;
53 attribute DiffservCodepoint reply_diffserv_codepoint;
59 #endif /* TAO_DIFFSERV_POLICY_IDL */