diff options
Diffstat (limited to 'ace/ATM_QoS.h')
-rw-r--r-- | ace/ATM_QoS.h | 105 |
1 files changed, 0 insertions, 105 deletions
diff --git a/ace/ATM_QoS.h b/ace/ATM_QoS.h deleted file mode 100644 index 95a8831ec46..00000000000 --- a/ace/ATM_QoS.h +++ /dev/null @@ -1,105 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// ace -// -// = FILENAME -// ATM_QoS.h -// -// = AUTHOR -// Joe Hoffert -// -// ============================================================================ - -#ifndef ACE_ATM_QoS_H -#define ACE_ATM_QoS_H -#include "ace/pre.h" - -#include "ace/ACE.h" - -#if !defined(ACE_LACKS_PRAGMA_ONCE) -#pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#if defined (ACE_HAS_ATM) - -#if defined (ACE_HAS_FORE_ATM_WS2) -// just map to WS2 GQOS struct -typedef ACE_QoS ATM_QoS; -#elif defined (ACE_HAS_FORE_ATM_XTI) -typedef struct netbuf ATM_QoS; -#elif defined (ACE_HAS_LINUX_ATM) -#include "atm.h" -#include "ATM_Params.h" -typedef struct atm_qos ATM_QoS; -#else -typedef int ATM_QoS; -#endif /* ACE_HAS_FORE_ATM_WS2 || ACE_HAS_FORE_ATM_XTI || ACE_HAS_LINUX_ATM */ - -class ACE_Export ACE_ATM_QoS -{ - // = TITLE - // Define the QoS parameters for ATM - // - // = DESCRIPTION - // This class wraps up QoS parameters for both ATM/XTI and - // ATM/WinSock2 to make the mechanism for the ATM protocol - // transparent. -public: - // Constants used for ATM options - static const long LINE_RATE; - static const int OPT_FLAGS_CPID; - static const int OPT_FLAGS_PMP; - static const int DEFAULT_SELECTOR; - static const int DEFAULT_PKT_SIZE; - - // = Initializattion and termination methods. - ACE_ATM_QoS(int = DEFAULT_PKT_SIZE); - // Default constructor. - - ACE_ATM_QoS(int, - int = DEFAULT_PKT_SIZE); - // Constructor with a CBR rate. - - ~ACE_ATM_QoS (); - - void set_rate (ACE_HANDLE, - int, - int); - // Set the rate. - - void set_cbr_rate (int, - int = DEFAULT_PKT_SIZE); - // Set CBR rate in cells per second. - - ATM_QoS get_qos (void); - // Get ATM_QoS struct. - - void dump (void) const; - // Dump the state of an object. - - ACE_ALLOC_HOOK_DECLARE; - // Declare the dynamic allocation hooks. - -protected: - char* construct_options(ACE_HANDLE, - int, - int, - long*); - // Construct QoS options. - -private: - ATM_QoS qos_; -}; - -#if defined (__ACE_INLINE__) -#include "ace/ATM_QoS.i" -#endif /* __ACE_INLINE__ */ - -#endif /* ACE_HAS_ATM */ -#include "ace/post.h" -#endif /* ACE_ATM_QoS_H */ - |