4 |
#pragma once |
#pragma once |
5 |
#include "afxwin.h" |
#include "afxwin.h" |
6 |
#include "TcpServerClass.h" |
#include "TcpServerClass.h" |
|
#include "TcpClientClass.h" |
|
|
|
|
7 |
|
|
8 |
// CH7ServerDlg dialog |
// CH7ServerDlg dialog |
9 |
class CH7ServerDlg : public CDialog |
class CH7ServerDlg : public CDialog |
23 |
protected: |
protected: |
24 |
HICON m_hIcon; |
HICON m_hIcon; |
25 |
TcpServerClass TcpServer; |
TcpServerClass TcpServer; |
|
TcpClientClass TcpClient; |
|
26 |
|
|
27 |
// Generated message map functions |
// Generated message map functions |
28 |
virtual BOOL OnInitDialog(); |
virtual BOOL OnInitDialog(); |
42 |
int StartTcp(void); |
int StartTcp(void); |
43 |
afx_msg void OnBnClickedTest(); |
afx_msg void OnBnClickedTest(); |
44 |
afx_msg void OnBnClickedRestart(); |
afx_msg void OnBnClickedRestart(); |
45 |
|
void ServerInit(void); |
46 |
}; |
}; |