⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 consumer.idl

📁 这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用于网络游戏医学图像网关的高qos要求.更详细的内容可阅读相应的材料
💻 IDL
字号:
/* -*- C++ -*- */
// Consumer.idl,v 1.7 1999/06/17 03:50:22 coryan Exp

#if !defined (_CONSUMER_IDL)
#define _CONSUMER_IDL

module Callback_Quoter
{
  // = TITLE
  // This module contains the data structure defined to store
  // information and the consumer interface.

  exception Invalid_Stock
  {
    // = TITLE
    //   Requested stock does not exist.

    string reason;
    // The message which declares the reason for this execption.

  };

  exception Invalid_Handle
  {
    // = TITLE
    //   Requested object does not exist.

    string reason;
    // The actual reason which caused the exception.

  };

  struct Info
  {
    // = TITLE
    // The information passed by the Notifier to the consumer.

    string stock_name;
    // This is the name of the stock about whom the consumer
    // is seeking information.

    long value;
    // This is the market price of the stock.
  };

  interface Consumer
    {
      // = TITLE
      // The Consumer interface which is utilized by the Notifier
      // to pass information to the consumer.

      void push (in Callback_Quoter::Info data);
      // Notifier sends data to the consumer.

      void shutdown ();
      // the process shuts down.
    };
};

#endif /* _CONSUMER_IDL */

⌨️ 快捷键说明

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