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

📄 udpserverdlg.h

📁 学习嵌入式LINUX的好东西
💻 H
字号:
// UDPServerDlg.h : header file
//

#pragma once
//#include "UDP_CE.h"
#include "UDPSocket.h"

// CUDPServerDlg dialog
class CUDPServerDlg : public CDialog
{
// Construction
public:
	CUDPServerDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_UDPSERVER_DIALOG };


	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
#if defined(_DEVICE_RESOLUTION_AWARE) && !defined(WIN32_PLATFORM_WFSP)
	afx_msg void OnSize(UINT /*nType*/, int /*cx*/, int /*cy*/);
#endif
	DECLARE_MESSAGE_MAP()
public:
	int m_LocalPort;
	CString m_RecvStr;
	CString m_SendStr;
	int m_RemotePort;
	CString m_RemoteHost;
private:
	CUDPSocket m_UDPSocket;
	//CUDP_CE m_UDPSocket;
public:
	//UDP接收数据事件
	static void CALLBACK OnUdpCERecv(CWnd * pWnd,char* buf,int nLen,sockaddr * addr);
	//UDP通讯错误事件
	static void CALLBACK OnUdpCEError(CWnd * pWnd,int nError);
public:
	afx_msg void OnBnClickedbtnopen();
public:
	afx_msg void OnBnClickedbtnclose();
public:
	afx_msg void OnBnClickedbtnsend();
};

⌨️ 快捷键说明

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