test.idl

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

IDL
40
字号
//
// Test.idl,v 1.1 2002/03/13 19:58:37 coryan Exp
//

/// A simple module to avoid namespace pollution
module Test
{
  /// Use a timestamp to measure the roundtrip delay
  typedef unsigned long long Timestamp;

  interface Session;
  interface Callback;

  /// Create sessions to measure roundtrip delays
  interface Session_Factory
  {
    /// Return a new session
    Session create_new_session (in Callback the_callback);

    /// Shutdown the server
    void shutdown ();
  };

  /// Each experiment is ran using completely separate
  interface Session
  {
    /// Run one iteration of the experiment
    void sample (in Timestamp the_timestamp);

    /// Destroy the session
    void shutdown ();
  };

  interface Callback
  {
    /// Measure one iteration
    void sample (in Timestamp the_timestamp);
  };
};

⌨️ 快捷键说明

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