資源簡介
監控網絡,捕獲一段時間內網絡上的IP數據包,按IP數據包的源地址統計出該源地址在該時間段內發出的IP數據包的個數,并將其用圖形表示出來。

代碼片段和文件信息
//?IPCapture.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“IPCapture.h“
#include?“IPCaptureDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CIPCaptureApp
BEGIN_MESSAGE_MAP(CIPCaptureApp?CWinApp)
//{{AFX_MSG_MAP(CIPCaptureApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CIPCaptureApp?construction
CIPCaptureApp::CIPCaptureApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CIPCaptureApp?object
CIPCaptureApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CIPCaptureApp?initialization
BOOL?CIPCaptureApp::InitInstance()
{
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CIPCaptureDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3608??2008-11-01?19:14??IPCapture\ArpPacket.h
?????文件??????21804??2011-11-29?12:10??IPCapture\IPCapture.aps
?????文件???????1739??2011-11-29?12:11??IPCapture\IPCapture.clw
?????文件???????2072??2008-10-30?10:21??IPCapture\IPCapture.cpp
?????文件???????4328??2008-11-02?15:23??IPCapture\IPCapture.dsp
?????文件????????543??2008-10-30?10:21??IPCapture\IPCapture.dsw
?????文件???????1357??2008-10-30?10:21??IPCapture\IPCapture.h
?????文件??????91136??2011-11-29?12:15??IPCapture\IPCapture.ncb
?????文件??????49664??2008-11-04?18:50??IPCapture\IPCapture.opt
?????文件???????1745??2011-11-29?12:10??IPCapture\IPCapture.plg
?????文件???????6839??2008-11-02?14:08??IPCapture\IPCapture.rc
?????文件??????59094??2008-11-04?18:46??IPCapture\IPCaptureDlg.cpp
?????文件???????5633??2008-11-02?12:21??IPCapture\IPCaptureDlg.h
?????文件???????3633??2008-10-30?10:21??IPCapture\ReadMe.txt
?????文件??????45056??2011-11-29?12:10??IPCapture\Release\IPCapture.exe
?????文件??????12917??2011-11-29?12:10??IPCapture\Release\IPCapture.obj
?????文件????5696520??2011-11-29?12:10??IPCapture\Release\IPCapture.pch
?????文件???????3260??2011-11-29?12:10??IPCapture\Release\IPCapture.res
?????文件??????78488??2011-11-29?12:10??IPCapture\Release\IPCaptureDlg.obj
?????文件????????750??2011-11-29?12:10??IPCapture\Release\StdAfx.obj
?????文件??????58368??2011-11-29?12:10??IPCapture\Release\vc60.idb
?????文件???????1078??2008-11-02?14:08??IPCapture\res\IPCapture.ico
?????文件????????401??2008-10-30?10:21??IPCapture\res\IPCapture.rc2
?????文件???????1377??2008-11-02?11:38??IPCapture\resource.h
?????文件????????211??2008-10-30?10:21??IPCapture\StdAfx.cpp
?????文件????????999??2008-10-30?10:21??IPCapture\StdAfx.h
?????文件???????3877??2005-05-04?11:39??IPCapture\WpdPack\Include\bittypes.h
?????文件???????2133??2003-05-15?06:20??IPCapture\WpdPack\Include\bucket_lookup.h
?????文件???????2113??2003-05-15?06:20??IPCapture\WpdPack\Include\count_packets.h
?????文件???????3963??2002-04-10?03:45??IPCapture\WpdPack\Include\Devioctl.h
............此處省略29個文件信息
- 上一篇:校園宿舍管理系統分享.zip
- 下一篇:《電機電磁場的分析與計算》-胡之光
評論
共有 條評論