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

📄 qos_util.h

📁 最新的版本ACE-5.6.8,刚从外文网上搬下,与大家分享.
💻 H
字号:
/* -*- C++ -*- */
// $Id: QoS_Util.h 80826 2008-03-04 14:51:23Z wotte $

// =====================================================================
//
// = LIBRARY
//    ACE_wrappers/examples/QOS
//
// = FILENAME
//    QoS_Util.h
//
// = AUTHOR
//    Vishal Kachroo <vishal@cs.wustl.edu>
//
// =====================================================================

#ifndef QOS_UTIL_H
#define QOS_UTIL_H

#include "ace/INET_Addr.h"
#include "ace/QoS/QoS_Session.h"

class QoS_Util
{
  // = TITLE
  //     This class provides the utility functions like parse_args ()
  //     required by a QoS enabled application.

public:

  // constructor.
  QoS_Util (int argc, ACE_TCHAR *argv[]);

  // destructor.
  ~QoS_Util (void);

  // Parse command-line arguments.
  int parse_args (void);

  // GET methods.
  ACE_INET_Addr *mult_session_addr (void) const;

  ACE_INET_Addr *dest_addr (void) const;

  u_short source_port (void) const;

  ACE_Protocol_ID protocol (void) const;

  int multicast_flag (void) const;

private:

  // Command line arguments.
  int argc_;
  ACE_TCHAR **argv_;

  // Multicast session address.
  ACE_INET_Addr *mult_session_addr_;

  // Unicast destination address of the receiver.
  ACE_INET_Addr *dest_addr_;

  // Source port for the sender.
  u_short source_port_;

  // Protocol.
  ACE_Protocol_ID protocol_;

  // Multicast Flag.
  int multicast_flag_;

};

#endif /* QOS_UTIL_H */

⌨️ 快捷键说明

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