网络流量统计基于Winpcap接口
监控网络,捕获一段时间内网络上的IP数据包,按IP数据包的源地址统计出该源地址在该时间段内发出的IP数据包的个数,并将其用图形表示出来。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3608 2008-11-01 19:14 IPCaptureArpPacket.h
文件 21804 2011-11-29 12:10 IPCaptureIPCapture.aps
文件 1739 2011-11-29 12:11 IPCaptureIPCapture.clw
文件 2072 2008-10-30 10:21 IPCaptureIPCapture.cpp
文件 4328 2008-11-02 15:23 IPCaptureIPCapture.dsp
文件 543 2008-10-30 10:21 IPCaptureIPCapture.dsw
文件 1357 2008-10-30 10:21 IPCaptureIPCapture.h
文件 91136 2011-11-29 12:15 IPCaptureIPCapture.ncb
文件 49664 2008-11-04 18:50 IPCaptureIPCapture.opt
文件 1745 2011-11-29 12:10 IPCaptureIPCapture.plg
文件 6839 2008-11-02 14:08 IPCaptureIPCapture.rc
文件 59094 2008-11-04 18:46 IPCaptureIPCaptureDlg.cpp
文件 5633 2008-11-02 12:21 IPCaptureIPCaptureDlg.h
文件 3633 2008-10-30 10:21 IPCaptureReadMe.txt
文件 45056 2011-11-29 12:10 IPCaptureReleaseIPCapture.exe
文件 12917 2011-11-29 12:10 IPCaptureReleaseIPCapture.obj
文件 5696520 2011-11-29 12:10 IPCaptureReleaseIPCapture.pch
文件 3260 2011-11-29 12:10 IPCaptureReleaseIPCapture.res
文件 78488 2011-11-29 12:10 IPCaptureReleaseIPCaptureDlg.obj
文件 750 2011-11-29 12:10 IPCaptureReleaseStdAfx.obj
文件 58368 2011-11-29 12:10 IPCaptureReleasevc60.idb
文件 1078 2008-11-02 14:08 IPCapture
esIPCapture.ico
文件 401 2008-10-30 10:21 IPCapture
esIPCapture.rc2
文件 1377 2008-11-02 11:38 IPCapture
esource.h
文件 211 2008-10-30 10:21 IPCaptureStdAfx.cpp
文件 999 2008-10-30 10:21 IPCaptureStdAfx.h
文件 3877 2005-05-04 11:39 IPCaptureWpdPackIncludeittypes.h
文件 2133 2003-05-15 06:20 IPCaptureWpdPackIncludeucket_lookup.h
文件 2113 2003-05-15 06:20 IPCaptureWpdPackIncludecount_packets.h
文件 3963 2002-04-10 03:45 IPCaptureWpdPackIncludeDevioctl.h
............此处省略29个文件信息
// 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 IPCaptureArpPacket.h
文件 21804 2011-11-29 12:10 IPCaptureIPCapture.aps
文件 1739 2011-11-29 12:11 IPCaptureIPCapture.clw
文件 2072 2008-10-30 10:21 IPCaptureIPCapture.cpp
文件 4328 2008-11-02 15:23 IPCaptureIPCapture.dsp
文件 543 2008-10-30 10:21 IPCaptureIPCapture.dsw
文件 1357 2008-10-30 10:21 IPCaptureIPCapture.h
文件 91136 2011-11-29 12:15 IPCaptureIPCapture.ncb
文件 49664 2008-11-04 18:50 IPCaptureIPCapture.opt
文件 1745 2011-11-29 12:10 IPCaptureIPCapture.plg
文件 6839 2008-11-02 14:08 IPCaptureIPCapture.rc
文件 59094 2008-11-04 18:46 IPCaptureIPCaptureDlg.cpp
文件 5633 2008-11-02 12:21 IPCaptureIPCaptureDlg.h
文件 3633 2008-10-30 10:21 IPCaptureReadMe.txt
文件 45056 2011-11-29 12:10 IPCaptureReleaseIPCapture.exe
文件 12917 2011-11-29 12:10 IPCaptureReleaseIPCapture.obj
文件 5696520 2011-11-29 12:10 IPCaptureReleaseIPCapture.pch
文件 3260 2011-11-29 12:10 IPCaptureReleaseIPCapture.res
文件 78488 2011-11-29 12:10 IPCaptureReleaseIPCaptureDlg.obj
文件 750 2011-11-29 12:10 IPCaptureReleaseStdAfx.obj
文件 58368 2011-11-29 12:10 IPCaptureReleasevc60.idb
文件 1078 2008-11-02 14:08 IPCapture
esIPCapture.ico
文件 401 2008-10-30 10:21 IPCapture
esIPCapture.rc2
文件 1377 2008-11-02 11:38 IPCapture
esource.h
文件 211 2008-10-30 10:21 IPCaptureStdAfx.cpp
文件 999 2008-10-30 10:21 IPCaptureStdAfx.h
文件 3877 2005-05-04 11:39 IPCaptureWpdPackIncludeittypes.h
文件 2133 2003-05-15 06:20 IPCaptureWpdPackIncludeucket_lookup.h
文件 2113 2003-05-15 06:20 IPCaptureWpdPackIncludecount_packets.h
文件 3963 2002-04-10 03:45 IPCaptureWpdPackIncludeDevioctl.h
............此处省略29个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)