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

📄 tcpsvrobj.cpp

📁 Windows CE下的客户端TCP/IP程序
💻 CPP
字号:
// TcpSvrObj.cpp: implementation of the CTcpSvrObj class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "TcpClient_mod.h"
#include "TcpSvrObj.h"

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

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

CTcpSvrObj::CTcpSvrObj(LPCTSTR szIPaddr, UINT nPort, UINT nBuffMax, HWND hWnd,
		   LPCTSTR initStr, UINT ninitLen)
		   :_client(szIPaddr, nPort, nBuffMax, hWnd, initStr, ninitLen)
{
}

CTcpSvrObj::~CTcpSvrObj()
{
	_client.Close();
	TRACE(_T("SVR destroyed\n"));
}

bool CTcpSvrObj::StartUp()
{
	return _client.Open();
}

⌨️ 快捷键说明

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