acl/lib_fiber/samples/WinEchod/WinEchodDlg.h

54 lines
1.1 KiB
C
Raw Normal View History

// WinEchodDlg.h : ͷ<>ļ<EFBFBD>
2018-11-30 14:38:22 +08:00
//
#pragma once
// CWinEchodDlg <20>Ի<EFBFBD><D4BB><EFBFBD>
2018-11-30 14:38:22 +08:00
class CWinEchodDlg : public CDialogEx
{
// <20><><EFBFBD><EFBFBD>
2018-11-30 14:38:22 +08:00
public:
CWinEchodDlg(CWnd* pParent = NULL); // <20><>׼<EFBFBD><D7BC><EFBFBD><EFBFBD><ECBAAF>
2018-11-30 14:38:22 +08:00
~CWinEchodDlg();
// <20>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
2018-11-30 14:38:22 +08:00
enum { IDD = IDD_WINECHOD_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV ֧<><D6A7>
2018-11-30 14:38:22 +08:00
// ʵ<><CAB5>
2018-11-30 14:38:22 +08:00
protected:
HICON m_hIcon;
// <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();
};