acl/lib_fiber/samples/WinEchod/WinEchodDlg.h

54 lines
1.0 KiB
C
Raw Normal View History

2018-01-09 00:05:28 +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;
2018-01-09 19:02:10 +08:00
UINT m_listenPort;
CString m_listenIP;
acl::string m_listenAddr;
2018-01-10 17:48:22 +08:00
acl::server_socket m_listen;
2018-01-11 18:30:06 +08:00
acl::fiber* m_fiberListen;
2018-01-10 17:48:22 +08:00
public:
afx_msg void OnBnClickedListen();
2018-01-11 18:30:06 +08:00
afx_msg void OnBnClickedCreateTimer();
2018-01-12 19:15:08 +08:00
afx_msg void OnBnClickedConnect();
private:
UINT m_cocurrent;
UINT m_count;
2018-01-15 12:15:51 +08:00
void Uni2Str(const CString& in, acl::string& out);
void InitFiber();
2018-01-13 09:37:57 +08:00
public:
void OnFiberConnectExit(void);
afx_msg void OnBnClickedOk();
2018-01-09 00:05:28 +08:00
};