⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mysocket.cpp

📁 传圣(测试版)说明 本软件适用于装有IP/TCP协议的电脑。 主要功能:电脑间传送大型文件(如电影等)。 主要特点: 1.采用了多线程技术,速度明显高于同类软件。 2.支持多文件同
💻 CPP
字号:
// mysocket.cpp: implementation of the mysocket class.
//
//////////////////////////////////////////////////////////////////////
//*************************************************************

/********************************************************/
#include "stdafx.h"
#include "client1.h"
#include "mysocket.h"
#include "client1View.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
 
mysocket::mysocket(CClient1View* view2)
{
view=view2;
}

mysocket::~mysocket()
{

}
void mysocket::OnReceive(int nErrorCode) 
{
	
	this->Receive(&m_buf,255);

	CString aaa;
	aaa.Format("%s",m_buf);
//AfxMessageBox(aaa);
view->Message((LPCTSTR)aaa,RGB(255,0,0));
	//this->getpa

}
void mysocket::OnSend(int nErrorCode) 
{

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -