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

📄 netfinder.h

📁 F340+CP2200的汉化版NETFINDER源代码,增加了串口设置
💻 H
字号:
// netfinder.h : main header file for the NETFINDER application
//

#if !defined(AFX_NETFINDER_H__A51E1FCE_C6CF_467F_B7C6_6A479ADDFE55__INCLUDED_)
#define AFX_NETFINDER_H__A51E1FCE_C6CF_467F_B7C6_6A479ADDFE55__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 "netfinderDlg.h"

/////////////////////////////////////////////////////////////////////////////
// CNetDisplay Cell Data Structure 

typedef struct NETDISPLAY_ENTRY {
	
	
	unsigned char alert_level;
	
	unsigned int event1_days;
	unsigned char event1_hours;
	unsigned char event1_minutes;
	
	unsigned int event2_days;
	unsigned char event2_hours;
	unsigned char event2_minutes;

	unsigned char event1_seconds;
	unsigned char event2_seconds;

	unsigned char mac[6];
	unsigned char ip[4];
	unsigned short port; // Get port from UDP header
	unsigned char subnet[4];
	unsigned char gateway[4];
	
    unsigned char baudrate_mode;
	unsigned char baudrate;

	CString str_type;
	CString str_description;
	CString str_ev1;
	CString str_ev2;

	

} NETDISPLAY_ENTRY;

#define MAX_NUM_PORTS 10
#define NETFINDER_PORT 5406

// Operation Commands
#define PORT_CLOSED 0
#define SEARCH 1 
#define ASSIGN 2
#define UARTCOM 3

#include "netfinderDlg.h"
#include "SearchDlg.h"
#include "AssignDlg.h"
#include "MySocket.h"	// Added by ClassView
#include "UartConfigDlg.h"
/////////////////////////////////////////////////////////////////////////////
// CNetfinderApp:
// See netfinder.cpp for the implementation of this class
//

class CNetfinderApp : public CWinApp
{
public:
	CMySocket m_socket;
	int m_operation;
	CSearchDlg* pSearchDlg;
	CAssignDlg* pAssignDlg;
	CUartConfigDlg* pUartDlg;

	unsigned int m_ports[MAX_NUM_PORTS];
	unsigned int m_numports;
	CNetfinderDlg* pMainDlg;
	CNetfinderApp();

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

// Implementation

	//{{AFX_MSG(CNetfinderApp)
		// 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()
};


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

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

#endif // !defined(AFX_NETFINDER_H__A51E1FCE_C6CF_467F_B7C6_6A479ADDFE55__INCLUDED_)

⌨️ 快捷键说明

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