📄 mysocket.cpp
字号:
// Mysocket.cpp : implementation file
//
#include "stdafx.h"
#include "TestServer.h"
#include "Mysocket.h"
#include "TestServerDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMysocket
CMysocket::CMysocket()
{
}
CMysocket::~CMysocket()
{
}
// Do not edit the following lines, which are needed by ClassWizard.
#if 0
BEGIN_MESSAGE_MAP(CMysocket, CAsyncSocket)
//{{AFX_MSG_MAP(CMysocket)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
#endif // 0
/////////////////////////////////////////////////////////////////////////////
// CMysocket member functions
void CMysocket::SetParent(CDialog *pWnd)
{
m_pWnd = pWnd;
}
void CMysocket::OnAccept(int nErrorCode)
{
//虚函数重载,对话框中对函数重定义
((CTestServerDlg*)m_pWnd)->OnAccept();
}
void CMysocket::OnReceive(int nErrorCode)
{
//虚函数重载,对话框中对函数重定义
((CTestServerDlg*)m_pWnd)->OnReceive();
}
void CMysocket::OnClose(int nErrorCode)
{
//虚函数重载,对话框中对函数重定义
((CTestServerDlg*)m_pWnd)->OnClose();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -