udp_serverdlg.h

来自「UDP通讯开发实例」· C头文件 代码 · 共 71 行

H
71
字号
// udp_serverDlg.h : header file
//

#if !defined(AFX_UDP_SERVERDLG_H__AA462CD5_26B0_43EB_B99E_7DB76FEC8814__INCLUDED_)
#define AFX_UDP_SERVERDLG_H__AA462CD5_26B0_43EB_B99E_7DB76FEC8814__INCLUDED_

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

#include "epcTCPIP.h"


#define RX_BUF_SIZE 100

/////////////////////////////////////////////////////////////////////////////
// CUdp_serverDlg dialog

class CUdp_serverDlg : public CDialog
{
public:
    EPC_TCP_IP  *ctcpipLocal;                                           /*  Define a object of the      */
                                                                        /*  'CLASS_TCP_IP' class        */

    unsigned short pusRxbuf[RX_BUF_SIZE];                               /*  Buffer of the receive data  */                 
    unsigned short usIndex;                                             /*  Index of the receve buffer  */
// Construction
public:
	CUdp_serverDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CUdp_serverDlg)
	enum { IDD = IDD_UDP_SERVER_DIALOG };
	CEdit	m_remoteport;
	CEdit	m_tx;
	CEdit	m_rx;
	CButton	m_open;
	CEdit	m_remoteip;
	CComboBox	m_localip;
	int		m_localport;
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CUdp_serverDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CUdp_serverDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnHelpInfo();
	afx_msg void OnBUTTONopen();
	afx_msg void OnBUTTONclose();
	afx_msg void OnBUTTONrxclr();
	afx_msg void OnBUTTONtxclr();
	afx_msg void OnBUTTONsend();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_UDP_SERVERDLG_H__AA462CD5_26B0_43EB_B99E_7DB76FEC8814__INCLUDED_)

⌨️ 快捷键说明

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