📄 tcp_serverdlg.h
字号:
// tcp_serverDlg.h : header file
//
#if !defined(AFX_TCP_SERVERDLG_H__FE92F256_EC33_4678_83D4_E9971B6159D1__INCLUDED_)
#define AFX_TCP_SERVERDLG_H__FE92F256_EC33_4678_83D4_E9971B6159D1__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "epcTCPIP.h"
#define RX_BUF_SIZE 100
/////////////////////////////////////////////////////////////////////////////
// CTcp_serverDlg dialog
class CTcp_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:
CTcp_serverDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CTcp_serverDlg)
enum { IDD = IDD_TCP_SERVER_DIALOG };
CEdit m_remoteport;
CButton m_open;
CEdit m_tx;
CEdit m_rx;
CEdit m_remoteip;
CComboBox m_localip;
int m_localport;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTcp_serverDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CTcp_serverDlg)
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
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TCP_SERVERDLG_H__FE92F256_EC33_4678_83D4_E9971B6159D1__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -