SimpleSniffer/SimpleSniffer.h
// SimpleSniffer.h : main header file for the SIMPLESNIFFER application
//

#if !defined(AFX_SIMPLESNIFFER_H__3322FDE1_C733_4300_8260_9CEF79018DBD__INCLUDED_)
#define AFX_SIMPLESNIFFER_H__3322FDE1_C733_4300_8260_9CEF79018DBD__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"       // main symbols
#include "Hex.h"
#include "PackInfo.h"
#include "InfoView.h"
#include "Thread.h"
#include <pcap.h>

/////////////////////////////////////////////////////////////////////////////
// CSimpleSnifferApp:
// See SimpleSniffer.cpp for the implementation of this class
//

class CSimpleSnifferApp : public CWinApp
{
public:
	CSimpleSnifferApp();

	// ʾ/Ʋ
	CPackInfo *m_packInfo;	// ʾһݰĸЭͷͼ(CPackInfo)
	Hex *m_editor;			// ʮƸʽʾһݰͼ(CHexView)
	CInfoView *m_infoView;	// б
	HWND m_control;			// ߳˳Ϣľ(CMainFrameľ)
	HWND m_display;			// ץϢľ(CInfoViewľ)

	// ץ̵ĸ/
	pcap_t *m_curDev;			// ǰ pcap_loop 豸
	pcap_dumper_t *m_dumper;	// ڴ洢 dump Ϣ
	CString m_tempDumpFilePath;	// tmp.pcap ȫ·(dumpϢ浽ļ)
	BOOL m_iscatching;			// ץ? øť״̬
	void startCatch();			// ߳ץ, "ץ"־

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSimpleSnifferApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

// Implementation
	//{{AFX_MSG(CSimpleSnifferApp)
	afx_msg void OnAppAbout();
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

extern CSimpleSnifferApp theApp;

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_SIMPLESNIFFER_H__3322FDE1_C733_4300_8260_9CEF79018DBD__INCLUDED_)
