diff options
Diffstat (limited to 'TAO/tao/DiffServPolicy/DiffServPolicy.pidl')
-rw-r--r-- | TAO/tao/DiffServPolicy/DiffServPolicy.pidl | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/TAO/tao/DiffServPolicy/DiffServPolicy.pidl b/TAO/tao/DiffServPolicy/DiffServPolicy.pidl new file mode 100644 index 00000000000..86aba431cc3 --- /dev/null +++ b/TAO/tao/DiffServPolicy/DiffServPolicy.pidl @@ -0,0 +1,61 @@ +// -*- IDL -*- + +// ================================================================ +/** + * @file DiffServPolicy.pidl + * + * $Id$ + * + * This file contains TAO-specific idl interfaces for adding + * network priority or DiffServ support (not part of CORBA + * 2.6). + * + * The steps to regenerate the code are as follows: + * + * 1. Run the tao_idl compiler on the pidl file. The command used for + * this is: + * + * tao_idl + * -o orig -Gp -Gd -Ge 1 -GA -SS -Sci + * -Wb,export_macro=TAO_Export + * -Wb,pre_include="ace/pre.h" + * -Wb,post_include="ace/post.h" + * TAO_Network_Priority_Policy.pidl + * + * 2. The files are ready to use + */ +// ================================================================ + +#ifndef TAO_DIFFSERV_POLICY_IDL +#define TAO_DIFFSERV_POLICY_IDL + +#include "tao/Policy.pidl" + +#pragma prefix "tao" + +module TAO +{ + typedef long DiffservCodepoint; + + enum NetworkPriorityModel + { + CLIENT_PROPAGATED_NETWORK_PRIORITY, + SERVER_DECLARED_NETWORK_PRIORITY, + NO_NETWORK_PRIORITY + }; + + const CORBA::PolicyType SERVER_NETWORK_PRIORITY_TYPE = 85; + const CORBA::PolicyType CLIENT_NETWORK_PRIORITY_TYPE = 86; + const CORBA::PolicyType NETWORK_PRIORITY_TYPE = 87; + + local interface NetworkPriorityPolicy : CORBA::Policy + { + readonly attribute NetworkPriorityModel network_priority_model; + attribute DiffservCodepoint request_diffserv_codepoint; + attribute DiffservCodepoint reply_diffserv_codepoint; + }; +}; + +#pragma prefix "" + +#endif /* TAO_DIFFSERV_POLICY_IDL */ |