mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-14 08:50:53 +08:00
49 lines
885 B
C
49 lines
885 B
C
|
|
|||
|
// EchoServerDlg.h: 头文件
|
|||
|
//
|
|||
|
|
|||
|
#pragma once
|
|||
|
|
|||
|
|
|||
|
// CEchoServerDlg 对话框
|
|||
|
class CEchoServerDlg : public CDialogEx
|
|||
|
{
|
|||
|
// 构造
|
|||
|
public:
|
|||
|
CEchoServerDlg(CWnd* pParent = nullptr); // 标准构造函数
|
|||
|
|
|||
|
// 对话框数据
|
|||
|
#ifdef AFX_DESIGN_TIME
|
|||
|
enum { IDD = IDD_ECHOSERVER_DIALOG };
|
|||
|
#endif
|
|||
|
|
|||
|
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()
|
|||
|
|
|||
|
private:
|
|||
|
UINT m_port;
|
|||
|
CIPAddressCtrl m_listenAddr;
|
|||
|
acl::fiber* m_listenFiber;
|
|||
|
|
|||
|
void InitFiber();
|
|||
|
void StopFiber();
|
|||
|
|
|||
|
public:
|
|||
|
afx_msg void OnBnClickedListen();
|
|||
|
afx_msg void OnBnClickedStopListen();
|
|||
|
afx_msg void OnBnClickedOk();
|
|||
|
afx_msg void OnBnClickedCancel();
|
|||
|
};
|