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

📄 clientsocket.cpp

📁 a general purpose TCP/UDP socket class for WinCE
💻 CPP
字号:
// ClientSocket.cpp: implementation of the CClientSocket class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "GenClient.h"
#include "ClientSocket.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CClientSocket::CClientSocket(CWnd * parent) : CCESocket()
{
	m_Parent = parent;
}

CClientSocket::~CClientSocket()
{
}

void CClientSocket::OnReceive()
{
	if(m_Parent)
		::PostMessage(m_Parent->m_hWnd, SOCK_ONRECEIVE, NULL, NULL);
}


void CClientSocket::OnClose(int closeEvent)
{
	if(m_Parent)
		::PostMessage(m_Parent->m_hWnd, SOCK_ONCLOSE, NULL, NULL);
}

⌨️ 快捷键说明

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