现在的位置: 首页 > 综合 > 正文

UDP void CDASocket::OnReceive(int nErrorCode)

2013年10月04日 ⁄ 综合 ⁄ 共 301字 ⁄ 字号 评论关闭
class CDSocket : public CSocket

class CDASocket : public CAsyncSocket

void CDASocket::OnReceive(int nErrorCode) 
{
	// TODO: Add your specialized code here and/or call the base
	char buff[256];
	int ret=0;
	ret=Receive(buff,256);
	if(ret==ERROR)
	{
		TRACE("ERROR!");
	}
	else 
		m_pDoc->Presscessding(buff);
	class CAsyncSocket::OnReceive(nErrorCode);
}

抱歉!评论已关闭.