blob: 3f8021018a2636556806081e7f79974c2a634ba9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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 = 0x54410002;
const CORBA::PolicyType CLIENT_NETWORK_PRIORITY_TYPE = 0x54410003;
const CORBA::PolicyType NETWORK_PRIORITY_TYPE = 0x54410004;
local interface NetworkPriorityPolicy : CORBA::Policy
{
attribute NetworkPriorityModel network_priority_model;
attribute DiffservCodepoint request_diffserv_codepoint;
attribute DiffservCodepoint reply_diffserv_codepoint;
};
};
#pragma prefix ""
#endif /* TAO_DIFFSERV_POLICY_IDL */
|