blob: ae70a317d8bb44e9b76e6914851a80d4f2e50c8c (
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
|
// $Id$
//
// ============================================================================
//
// = LIBRARY
// TAO/tests/NestedUpcall
//
// = FILENAME
// Reactor.idl
//
// = DESCRIPTION
// A simple test of nested upcalls using a structure we likely all
// know and love.
//
// Existence of this interface should not be taken as testimony that
// such a structure would work in ACE! There is no such thing as an
// IDL interface to the Reactor (yet)!
//
// = AUTHORS
// Chris Cleeland
//
// ============================================================================
interface Reactor;
interface EventHandler
{
Long peer ();
// Returns an integer corresponding to the event handler's file
// descriptor.
UShort decrement (in Reactor r, in UShort num);
// Decrements <num> by invoking the <decrement> operation on <r>
// and returning that value, finally stopping when it gets to zero.
};
interface Reactor
{
Long register_handler (in EventHandler eh);
// Turns around and queries <eh> for the peer.
oneway void set_value ();
// do-nothing oneway to check for proper operation.
UShort decrement (in EventHandler eh, in UShort num);
// Decrements <num> by invoking the <decrement> operation on <eh>
// and returning that value, finally stopping when it gets to zero.
void stop ();
// Stops the reactor.
};
|