acl/lib_fiber/samples/WinEchod/WinEchodDlg.h

54 lines
1.1 KiB
C
Raw Normal View History

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