test.idl

来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· IDL 代码 · 共 28 行

IDL
28
字号
//
// test.idl,v 1.1 1999/06/27 21:52:25 coryan Exp
//

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

interface Simple_Server
{
  long test_method (in boolean do_callback,
                    in boolean is_clean,
                    in Callback cb);
  // Just call a method on the server, we can pass a callback object
  // so the server can be tested for client shutdowns.

  void shutdown_now (in boolean is_clean);
  // An unsafe way to shutdown the server, we can even ask for a
  // "catastrophic crash" (implemented using abort())

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

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?