Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / TransportCurrent / TC.idl
bloba3bea1636d313654acbbf07c3268a7943f9974d0
1 /**
2 * @file TC.idl
4 * @brief Defines the TAO::Transport::Current interface
6 * @author Iliyan Jeliazkov <iliyan@ociweb.com>
7 */
9 #ifndef TAO_TRANSPORT_CURRENT_IDL
10 #define TAO_TRANSPORT_CURRENT_IDL
12 #include "tao/IOP.pidl"
13 #include "tao/TimeBase.pidl"
15 module TAO
17 /// A type used to represent counters
18 typedef unsigned long long CounterT;
20 module Transport
22 /// Used to signal that a call was made within improper invocation
23 /// context. Also, this exception is thrown if no Transport has
24 /// been selected for the current thread, for example in a
25 /// collocated invocation.
26 exception NoContext
30 /// The primary interface, providing access to Transport
31 /// information, available to the current thread.
32 local interface Current
34 /// Transport ID, unique within the process.
35 readonly attribute long id raises (NoContext);
37 /// Bytes sent/received through the transport.
38 readonly attribute CounterT bytes_sent raises (NoContext);
39 readonly attribute CounterT bytes_received raises (NoContext);
41 /// Messages (requests and replies) sent/received using the current
42 /// protocol.
43 readonly attribute CounterT messages_sent raises (NoContext);
44 readonly attribute CounterT messages_received raises (NoContext);
46 /// The absolute time (miliseconds) since the transport has been
47 /// open.
48 readonly attribute TimeBase::TimeT open_since raises (NoContext);
53 #endif /* TAO_TRANSPORT_CURRENT_IDL */