3 // ================================================================
7 * This file contains extensions to the TAO-specific idl interfaces
8 * (not part of CORBA 2.6) defined in $TAO_ROOT/tao
10 * The steps to regenerate the code are as follows:
12 * 1. Run the tao_idl compiler on the pidl file. The command used for
16 * -o orig -Gp -Gd -GA -Sci -SS
17 * -Wb,export_macro=TAO_Messaging_Export
18 * -Wb,export_include=messaging_export.h
19 * -Wb,pre_include="ace/pre.h"
20 * -Wb,post_include="ace/post.h"
21 * -I$(TAO_ROOT) TAO_Ext.pidl
23 * The generated files are ready to use
25 // ================================================================
27 #ifndef TAO_TAO_EXT_IDL
28 #define TAO_TAO_EXT_IDL
30 #include "tao/Policy.pidl"
31 #include "tao/TimeBase.pidl"
37 const CORBA::PolicyType CONNECTION_TIMEOUT_POLICY_TYPE = 0x54410008;
39 local interface ConnectionTimeoutPolicy : CORBA::Policy {
40 readonly attribute TimeBase::TimeT relative_expiry;
44 // Buffering constraint.
46 typedef unsigned short BufferingConstraintMode;
47 const BufferingConstraintMode BUFFER_FLUSH = 0x00;
49 // Note that timeout, message_count, and message_bytes can be or'd.
50 const BufferingConstraintMode BUFFER_TIMEOUT = 0x01;
51 const BufferingConstraintMode BUFFER_MESSAGE_COUNT = 0x02;
52 const BufferingConstraintMode BUFFER_MESSAGE_BYTES = 0x04;
54 struct BufferingConstraint
56 BufferingConstraintMode mode;
57 TimeBase::TimeT timeout;
58 unsigned long message_count;
59 unsigned long message_bytes;
62 const CORBA::PolicyType BUFFERING_CONSTRAINT_POLICY_TYPE = 0x54410001;
64 local interface BufferingConstraintPolicy : CORBA::Policy
66 readonly attribute BufferingConstraint buffering_constraint;
70 #endif /* TAO_TAO_EXT_IDL */