2019-07-28 10:31:56 +08:00
|
|
|
|
|
|
|
|
|
// WinEchodDlg.h : ͷ<>ļ<EFBFBD>
|
2018-11-30 14:38:22 +08:00
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// CWinEchodDlg <20>Ի<EFBFBD><D4BB><EFBFBD>
|
2018-11-30 14:38:22 +08:00
|
|
|
|
class CWinEchodDlg : public CDialogEx
|
|
|
|
|
{
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// <20><><EFBFBD><EFBFBD>
|
2018-11-30 14:38:22 +08:00
|
|
|
|
public:
|
2019-07-28 10:31:56 +08:00
|
|
|
|
CWinEchodDlg(CWnd* pParent = NULL); // <20><><EFBFBD><D7BC><EFBFBD>캯<EFBFBD><ECBAAF>
|
2018-11-30 14:38:22 +08:00
|
|
|
|
~CWinEchodDlg();
|
|
|
|
|
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// <20>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2018-11-30 14:38:22 +08:00
|
|
|
|
enum { IDD = IDD_WINECHOD_DIALOG };
|
|
|
|
|
|
|
|
|
|
protected:
|
2019-07-28 10:31:56 +08:00
|
|
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV ֧<><D6A7>
|
2018-11-30 14:38:22 +08:00
|
|
|
|
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// ʵ<><CAB5>
|
2018-11-30 14:38:22 +08:00
|
|
|
|
protected:
|
|
|
|
|
HICON m_hIcon;
|
|
|
|
|
|
2019-07-28 10:31:56 +08:00
|
|
|
|
// <20><><EFBFBD>ɵ<EFBFBD><C9B5><EFBFBD>Ϣӳ<CFA2>亯<EFBFBD><E4BAAF>
|
2018-11-30 14:38:22 +08:00
|
|
|
|
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::string m_listenAddr;
|
|
|
|
|
acl::server_socket m_listen;
|
|
|
|
|
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 Uni2Str(const CString& in, acl::string& out);
|
|
|
|
|
void InitFiber();
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
void OnFiberConnectExit(void);
|
|
|
|
|
afx_msg void OnBnClickedOk();
|
|
|
|
|
};
|