1 |
// test-serverDlg.h : header file
|
2 |
//
|
3 |
|
4 |
#pragma once
|
5 |
|
6 |
|
7 |
#include "ServerSocket.h"
|
8 |
#include "TerminalSocket.h"
|
9 |
#include "afxwin.h"
|
10 |
|
11 |
// CtestserverDlg dialog
|
12 |
class CtestserverDlg : public CDialog, public sigslot::has_slots<>
|
13 |
{
|
14 |
// Construction
|
15 |
public:
|
16 |
CtestserverDlg(CWnd* pParent = NULL); // standard constructor
|
17 |
|
18 |
// Dialog Data
|
19 |
enum { IDD = IDD_TESTSERVER_DIALOG };
|
20 |
|
21 |
protected:
|
22 |
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
23 |
|
24 |
|
25 |
// Implementation
|
26 |
protected:
|
27 |
HICON m_hIcon;
|
28 |
|
29 |
ServerSocket m_server;
|
30 |
TerminalSocket m_worker;
|
31 |
// Generated message map functions
|
32 |
virtual BOOL OnInitDialog();
|
33 |
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
|
34 |
afx_msg void OnPaint();
|
35 |
afx_msg HCURSOR OnQueryDragIcon();
|
36 |
DECLARE_MESSAGE_MAP()
|
37 |
public:
|
38 |
void AcceptConnection(void);
|
39 |
void UpdateDisplay(void);
|
40 |
void WriteLine(CString msg);
|
41 |
CEdit m_edit;
|
42 |
protected:
|
43 |
virtual void OnCancel();
|
44 |
};
|