sockpoint.cpp

来自「是一个ARM上面的PDA开发用的聊天工具,分为客户端与服务器端,纯LINUX环境」· C++ 代码 · 共 37 行

CPP
37
字号
// sockpoint.cpp: implementation of the Csockpoint class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "s.h"
#include "sockpoint.h"
#include "sock.h"
#include "sDlg.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

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

Csockpoint::Csockpoint(CSDlg *pd)
{
	psock=new Csock(pd);
	next=NULL;
}

Csockpoint::~Csockpoint()
{
	psock->Close();
	delete psock;
	psock=NULL;
}

Csockpoint::showall()
{
	psock->Send(psock->pDlg->m_buf,1024);
}

⌨️ 快捷键说明

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