mysocket.cpp
来自「传圣(测试版)说明 本软件适用于装有IP/TCP协议的电脑。 主要功能:」· C++ 代码 · 共 46 行
CPP
46 行
// 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 + =
减小字号Ctrl + -
显示快捷键?