标签:
char szBuff[260]; int nRead = 0; while ((nRead = m_pSock->Recv(&szBuff, 260)) > 259) { Protocol aaa; memcpy(&aaa,szBuff,sizeof(aaa)); CString ch = aaa.Msg; m_pSrvThread->SendAlL(ch); pServerDlg->ShowMsg(ch); }
char szBuff[260];int nRead = 0;while ((nRead = m_pSock->Recv(&szBuff, 260)) > 259){Protocol aaa;memcpy(&aaa,szBuff,sizeof(aaa));CString ch = aaa.Msg;m_pSrvThread->SendAlL(ch);pServerDlg->ShowMsg(ch);}
标签:
原文地址:http://www.cnblogs.com/lveternal/p/4705400.html