//
// $Id: test.idl 82566 2008-08-08 14:09:08Z mitza $
//

#include "tao/OctetSeq.pidl"

interface Callback
{
  oneway void shutdown ();
  // A safe way to shutdown the client, using either clean shutdowns
  // or "catastrophic failures".

  void callback_method (in CORBA::OctetSeq payload);
  // A simple remote call takes a payload to increase the duration of
  // call to trigger the wait strategy and thus the error.

};

interface Simple_Server
{
  oneway void ow_test ();

  long test_method (in boolean do_callback);
  // Just call a method on the server,

  void callback_object (in Callback cb);
  // send the callback object to the server

  oneway void shutdown ();
  // A safe way to shutdown the server, it is a oneway function so we
  // will never get a COMM_FAILURE error
};
