tcp_clientdlg.h

来自「TCP客户端应用开发示例。 EVC 4.0 编译通过 ARMV4I 运行成功」· C头文件 代码 · 共 68 行

H
68
字号
// tcp_clientDlg.h : header file
//

#if !defined(AFX_TCP_CLIENTDLG_H__C5829A5F_C078_4550_BDE9_778B924838DA__INCLUDED_)
#define AFX_TCP_CLIENTDLG_H__C5829A5F_C078_4550_BDE9_778B924838DA__INCLUDED_

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

#include "epcTCPIP.h"

#define RX_BUF_SIZE 100
/////////////////////////////////////////////////////////////////////////////
// CTcp_clientDlg dialog

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

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

// Dialog Data
	//{{AFX_DATA(CTcp_clientDlg)
	enum { IDD = IDD_TCP_CLIENT_DIALOG };
	CButton	m_open;
	CEdit	m_tx;
	CEdit	m_rx;
	CEdit	m_remoteip;
	CComboBox	m_localip;
	int		m_localport;
	int		m_remoteport;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

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

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

#endif // !defined(AFX_TCP_CLIENTDLG_H__C5829A5F_C078_4550_BDE9_778B924838DA__INCLUDED_)

⌨️ 快捷键说明

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