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);}
时间: 2024-10-07 04:30:28