📄 clientsocket.cpp
字号:
// ClientSocket.cpp: implementation of the CClientSocket class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "client.h"
#include "ClientSocket.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CClientSocket::CClientSocket()
{
}
CClientSocket::~CClientSocket()
{
}
void CClientSocket::OnConnect(int nErrorCode)
{
AfxGetMainWnd()->SendMessage(WM_USER_CONNECTED,nErrorCode);
}
void CClientSocket::OnTransferClose(int reason,int nErrorCode)
{
AfxGetMainWnd()->SendMessage(WM_USER_CLOSED);
}
void CClientSocket::OnOneDataSent()
{
AfxGetMainWnd()->SendMessage(WM_USER_FILESENT);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -