summaryrefslogtreecommitdiff
path: root/TAO/examples/AMI/FL_Callback/test.idl
blob: 87dead7906d48bf2d4bab60656479f5c9e70563c (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
//
// $Id$
//

interface Peer;
typedef sequence<Peer> PeerSet;

interface Peer
{
  // = DESCRIPTION
  //   A simple interface to demo the AMI implementation.
  //   A set of "peers" run in the network, each one binds to the
  //   progress server, when all the peers are bound the server
  //   requests that each one send multiple "request" messages to each
  //   other, using AMI. The progress is reported back to the progress
  //   server for display.

  long request (in long id);
  // A simple request, sends back the number in <id>.

  oneway void start (in PeerSet the_peers,
                     in long iterations);
  // Start the demo in one Peer

  oneway void shutdown ();
  // Shutdown the ORB
};

interface Progress
{
  // = DESCRIPTION
  //   This interface is used to report progress, multiple
  //   applications identified by an <id> run in parallel, each one
  //   reports as the asynchronous requests are sent and received.

  oneway void sent_request (in long id);
  oneway void recv_reply (in long id);

  long bind (in Peer a_peer);
  // Bind one of the peers.
};