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

📄 ratelimit.h

📁 ks8995m5口交换机启动eeprom配置源码
💻 H
字号:
#if !defined(AFX_RATELIMIT_H__5DA03372_C4CB_4B85_8F2E_60A45F107C12__INCLUDED_)
#define AFX_RATELIMIT_H__5DA03372_C4CB_4B85_8F2E_60A45F107C12__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// RateLimit.h : header file
//

#include "ks95mspi.h"

/////////////////////////////////////////////////////////////////////////////
// CRateLimit dialog

class CRateLimit : public CPropertyPage
{
	DECLARE_DYNCREATE(CRateLimit)

// Construction
public:
	CRateLimit();
	~CRateLimit();
	void SetPriorityMode ();

// Dialog Data
	//{{AFX_DATA(CRateLimit)
	enum { IDD = IDD_RATELIMIT_DIALOG };

	BOOL  m_bTxDisablePriority[PORTCOUNT];
	BOOL  m_bRxDisablePriority[PORTCOUNT];

	BOOL  m_TxEnableRateLimitHi[PORTCOUNT];
	BOOL  m_TxEnableRateLimitLo[PORTCOUNT];

	BOOL  m_RxEnableRateLimitHi[PORTCOUNT];
	BOOL  m_RxEnableRateLimitLo[PORTCOUNT];
	
	CEdit m_cTxRateLimitHi[PORTCOUNT];
	CString m_sTxRateLimitHi[PORTCOUNT];

	CEdit m_cTxRateLimitLo[PORTCOUNT];
	CString m_sTxRateLimitLo[PORTCOUNT];

	CEdit m_cRxRateLimitHi[PORTCOUNT];
	CString m_sRxRateLimitHi[PORTCOUNT];

	CEdit m_cRxRateLimitLo[PORTCOUNT];
	CString m_sRxRateLimitLo[PORTCOUNT];

	WORD m_wTxRateLimitHi[PORTCOUNT];
	WORD m_wTxRateLimitLo[PORTCOUNT];
	WORD m_wRxRateLimitHi[PORTCOUNT];
	WORD m_wRxRateLimitLo[PORTCOUNT];

	WORD m_wPriorityScheme;	// Hardware supports per port based but this program
							// uses a global setting

	BOOL m_bEnableFlowControl;	// This only enable flow control for rate limit

		// NOTE - ClassWizard will add data members here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CRateLimit)
	public:
	virtual BOOL OnSetActive(); 
	virtual BOOL OnApply(); 

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CRateLimit)
	virtual BOOL OnInitDialog();

	afx_msg void OnUpdate();
	afx_msg void OnCombineRate();

	afx_msg void OnDiffSer();
	afx_msg void On8021p();
	afx_msg void OnPortBased();

	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_RATELIMIT_H__5DA03372_C4CB_4B85_8F2E_60A45F107C12__INCLUDED_)

⌨️ 快捷键说明

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