summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/Throughput/Test.idl
blob: 08e67ceed4628f62a566a08bf28c8693857b3f5f (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
//
// $Id$
//

module Test
{
  /// The data payload
  typedef sequence<octet> Payload;
  struct Message {
    unsigned long message_id;
    Payload the_payload;
  };

  /// Implement a simple interface to receive a lot of data
  interface Receiver
  {
    /// Receive a big payload
    oneway void receive_data (in Message the_message);

    /// All the data has been sent, print out performance data
    void done ();
  };

  /// Implement a factory to create Receivers
  interface Receiver_Factory
  {
    /// Create a new receiver
    Receiver create_receiver ();

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