-
Notifications
You must be signed in to change notification settings - Fork 153
/
WinEchodDlg.h
52 lines (43 loc) · 1.03 KB
/
WinEchodDlg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// WinEchodDlg.h : 头文件
//
#pragma once
// CWinEchodDlg 对话框
class CWinEchodDlg : public CDialogEx
{
// 构造
public:
CWinEchodDlg(CWnd* pParent = NULL); // 标准构造函数
~CWinEchodDlg();
// 对话框数据
enum { IDD = IDD_WINECHOD_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
// 实现
protected:
HICON m_hIcon;
// 生成的消息映射函数
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedOpenDos();
private:
FILE* m_dosFp;
UINT m_listenPort;
CString m_listenIP;
ACL_FIBER* m_fiberListen;
public:
afx_msg void OnBnClickedListen();
afx_msg void OnBnClickedCreateTimer();
afx_msg void OnBnClickedConnect();
private:
UINT m_cocurrent;
UINT m_count;
void InitFiber();
void Uni2Str(const CString& in, char* buf, size_t size);
public:
void OnFiberConnectExit(void);
afx_msg void OnBnClickedOk();
};