📄 testsock.cpp
字号:
// TestSock.cpp : implementation file
//
#include "stdafx.h"
#include "testsocket2.h"
#include "TestSock.h"
#include "testsocket2Dlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// TestSock
TestSock::TestSock()
{
}
TestSock::~TestSock()
{
}
// Do not edit the following lines, which are needed by ClassWizard.
#if 0
BEGIN_MESSAGE_MAP(TestSock, CSocket)
//{{AFX_MSG_MAP(TestSock)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
#endif // 0
/////////////////////////////////////////////////////////////////////////////
// TestSock member functions
void TestSock::GetDlg(CTestsocket2Dlg *mdlg)
{
dlg=mdlg;
}
void TestSock::OnAccept(int nErrorCode)
{
CSocket::OnAccept(nErrorCode);
}
void TestSock::OnReceive(int nErrorCode)
{
dlg->OnReceive();
CSocket::OnReceive(nErrorCode);
}
void TestSock::OnClose(int nErrorCode)
{
dlg->OnClose();
CSocket::OnClose(nErrorCode);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -