// test-serverDlg.h : header file // #pragma once #include "ServerSocket.h" #include "TerminalSocket.h" #include "afxwin.h" // CtestserverDlg dialog class CtestserverDlg : public CDialog, public sigslot::has_slots<> { // Construction public: CtestserverDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data enum { IDD = IDD_TESTSERVER_DIALOG }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support // Implementation protected: HICON m_hIcon; ServerSocket m_server; TerminalSocket m_worker; // Generated message map functions virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); DECLARE_MESSAGE_MAP() public: void AcceptConnection(void); void UpdateDisplay(void); void WriteLine(CString msg); CEdit m_edit; protected: virtual void OnCancel(); };