資源簡介
了解校園網計費
研究校園網絡計費的實現方式及關鍵技術
熟悉TCP/IP協議
基于流量的校園網計費方案設計 .網絡報文攔截與報文分析
實現基于流量的校園網計費系統

代碼片段和文件信息
//?ADAPage.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“CTAS.h“
#include?“ADAPage.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CADAPage?property?page
IMPLEMENT_DYNCREATE(CADAPage?CPropertyPage)
CADAPage::CADAPage()?:?CPropertyPage(CADAPage::IDD)
{
//{{AFX_DATA_INIT(CADAPage)
//?NOTE:?the?ClassWizard?will?add?member?initialization?here
//}}AFX_DATA_INIT
}
CADAPage::~CADAPage()
{
}
void?CADAPage::DoDataExchange(CDataExchange*?pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CADAPage)
DDX_Control(pDX?IDC_COMLST_ADAPTER?m_lstAdapter);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CADAPage?CPropertyPage)
//{{AFX_MSG_MAP(CADAPage)
ON_CBN_SELENDOK(IDC_COMLST_ADAPTER?OnSelendokComlstAdapter)
ON_BN_CLICKED(IDC_BTN_CONFIG?OnBtnConfig)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CADAPage?message?handlers
BOOL?CADAPage::OnInitDialog()?
{
CPropertyPage::OnInitDialog();
//?TODO:?Add?extra?initialization?here
//?初始化選擇網卡列表顯示出當前已選設備
CString?tempstrNumstrPortstrPName;
// char?cPort[6]cPName[11];
UINT?i;
m_PktCap.FindAllDevs();
m_nDevCount?=?m_PktCap.m_nDevsCount?;
for?(i=1;i<=m_PktCap.m_nDevsCount;i++)
{
m_PktCap.SelectDevs(i);
m_lstAdapter.AddString(m_PktCap.m_curdevs->description);
}
m_nSelected?=?::GetPrivateProfileInt(“NetAdapter““SELECT“0“.\\config\\netconfig.ini“);
m_lstAdapter.SetCurSel(m_nSelected-1); //此處以后應改為讀配置文件來選取默認設務
// m_PktCap.SelectDevs(4); //選擇網卡設備
m_PktCap.SelectDevs(m_nSelected);
GetDlgItem(IDC_EDIT_ADAINFO)->SetWindowText(m_PktCap.m_curdevs->name);
::GetPrivateProfileString(“NetAdapter““NAME““NULL“temp.GetBuffer(0)50“.\\config\\netconfig.ini“);
GetDlgItem(IDC_EDIT_CURDEVS)->SetWindowText(temp);
// AfxMessageBox(temp);
m_bAdapterChanged??=?FALSE;
return?TRUE;??//?return?TRUE?unless?you?set?the?focus?to?a?control
??????????????//?EXCEPTION:?OCX?Property?Pages?should?return?FALSE
}
void?CADAPage::OnSelendokComlstAdapter()?
{
//?TODO:?Add?your?control?notification?handler?code?here
m_nSelected?=?m_lstAdapter.GetCurSel()?+?1;
m_lstAdapter.GetLBText?(m_lstAdapter.GetCurSel()m_strCurDevName);
m_PktCap.SelectDevs(m_nSelected);
GetDlgItem(IDC_EDIT_ADAINFO)->SetWindowText(m_PktCap.m_curdevs->name);
m_bAdapterChanged?=?TRUE;
SetModified(m_bAdapterChanged);
}
void?CADAPage::OnBtnConfig()?
{
//?TODO:?Add?your?control?notification?handler?code?here
CString?temp;
temp.Format(“%d“m_nDevCount);
::WritePrivateProfileString(“NetAdapter““COUNT“temp“.\\config\\netconfig.ini“);
temp.Format(“%d“m_nSelected);
::WritePrivateProfileString(“NetAdapter““SELECT“temp“.\\config\\netconfig.ini“);
::WritePrivateProfileString(“NetAdapter““NAME“m_strCurDevName“.\\conf
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3195??2006-06-14?21:11??source_code--謝巍?2006\source_code\CTAS\ADAPage.cpp
?????文件???????1418??2006-05-07?18:45??source_code--謝巍?2006\source_code\CTAS\ADAPage.h
?????文件???????1715??2006-05-07?21:34??source_code--謝巍?2006\source_code\CTAS\AppTypeSet.cpp
?????文件???????1431??2006-05-07?21:34??source_code--謝巍?2006\source_code\CTAS\AppTypeSet.h
?????文件???????1291??2006-05-07?21:35??source_code--謝巍?2006\source_code\CTAS\BanSet.cpp
?????文件???????1269??2006-05-07?21:35??source_code--謝巍?2006\source_code\CTAS\BanSet.h
?????文件??????52061??2002-04-17?18:34??source_code--謝巍?2006\source_code\CTAS\BtnST.cpp
?????文件???????8396??2006-05-07?15:18??source_code--謝巍?2006\source_code\CTAS\BtnST.h
?????文件??????88816??2002-03-31?12:20??source_code--謝巍?2006\source_code\CTAS\CButtonST\BCMenu.cpp
?????文件??????16478??2002-03-31?12:20??source_code--謝巍?2006\source_code\CTAS\CButtonST\BCMenu.h
?????文件??????52061??2002-04-17?18:34??source_code--謝巍?2006\source_code\CTAS\CButtonST\BtnST.cpp
?????文件???????8392??2002-05-29?17:45??source_code--謝巍?2006\source_code\CTAS\CButtonST\BtnST.h
?????文件???????8684??2001-12-03?17:54??source_code--謝巍?2006\source_code\CTAS\CButtonST\CeXDib.cpp
?????文件???????2328??2001-12-04?11:23??source_code--謝巍?2006\source_code\CTAS\CButtonST\CeXDib.h
?????文件???????7113??2001-12-03?18:16??source_code--謝巍?2006\source_code\CTAS\CButtonST\ShadeButtonST.cpp
?????文件???????1888??2002-05-31?17:39??source_code--謝巍?2006\source_code\CTAS\CButtonST\ShadeButtonST.h
?????文件???????2829??2001-09-05?09:39??source_code--謝巍?2006\source_code\CTAS\CButtonST\WinXPButtonST.cpp
?????文件???????1554??2002-05-31?17:21??source_code--謝巍?2006\source_code\CTAS\CButtonST\WinXPButtonST.h
?????文件????????166??2006-06-06?15:18??source_code--謝巍?2006\source_code\CTAS\config\dbconfig.ini
?????文件????????415??2006-06-22?20:43??source_code--謝巍?2006\source_code\CTAS\config\dis_time.ini
?????文件????????202??2006-06-22?20:43??source_code--謝巍?2006\source_code\CTAS\config\free_ip.ini
?????文件????????614??2006-06-22?19:30??source_code--謝巍?2006\source_code\CTAS\config\netconfig.ini
?????文件?????????41??2006-06-14?21:49??source_code--謝巍?2006\source_code\CTAS\config\unitprice.ini
?????文件?????????41??2006-05-08?09:09??source_code--謝巍?2006\source_code\CTAS\config.in
?????文件???????2928??2006-06-14?21:11??source_code--謝巍?2006\source_code\CTAS\ConfigDSPage.cpp
?????文件???????1435??2006-05-26?09:28??source_code--謝巍?2006\source_code\CTAS\ConfigDSPage.h
?????文件?????111528??2006-06-24?00:12??source_code--謝巍?2006\source_code\CTAS\CTAS.APS
?????文件??????10606??2006-06-24?00:12??source_code--謝巍?2006\source_code\CTAS\CTAS.clw
?????文件???????2908??2006-06-15?14:49??source_code--謝巍?2006\source_code\CTAS\CTAS.cpp
?????文件???????8224??2006-06-22?21:58??source_code--謝巍?2006\source_code\CTAS\CTAS.dsp
............此處省略252個文件信息
- 上一篇:袋鼠云數據中臺解決方案介紹
- 下一篇:多個五角星 顏色大小不一樣
評論
共有 條評論