Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Oneway_Buffering / Test.idl
blob97c8f46b141fea07f7b789ce197d7d4aa1b50ed1
2 /// Put the interfaces in a module, to avoid global namespace pollution
3 module Test
5 /// A sequence of octets to generate bigger messages
6 typedef sequence<octet> Payload;
8 /// Clients use this interface to send oneway requests
9 interface Oneway_Buffering
11 /// Return a simple string
12 oneway void receive_data (in Payload the_payload);
14 /// An empty operation to force a flush in the ORB queues
15 oneway void flush ();
17 /// Synchronize the state with the Admin object.
18 /**
19 * Once flush() has been invoked (with the correct buffering
20 * policies) we must use sync() to ensure that both the main
21 * server and the Admin servers are in sync.
23 void sync ();
25 /// Shutdown the server
26 void shutdown ();
29 /// Clients use this interface to query the number of oneway
30 /// requests received.
31 interface Oneway_Buffering_Admin
33 /// Number of oneway requests received
34 unsigned long request_count (in unsigned long expected_count);
36 /// Number of bytes received
37 unsigned long bytes_received_count (in unsigned long expected_count);
39 /// The Oneway_Buffering interface uses this method to report any
40 /// request received.
41 void request_received (in unsigned long payload_length);
43 /// An empty operation to force a flush in the ORB queues
44 void flush ();
46 /// A method to shutdown the ORB
47 /**
48 * This method is used to simplify the test shutdown process
50 void shutdown ();