iLen = m_clientSocket.Receive(pBuf, 1024); //Receieve Data packet if (iLen == SOCKET_ERROR) { AfxMessageBox(L"Could not Recieve"); return; } else { /*if (iLen == sizeof(struct udp_tackpacket_t)) { struct udp_tackpacket_t* pstrFrame; pstrFrame = (struct udp_tackpacket_t*)pBuf; m_sharedData.szCounter.Format(_T("%d"), pstrFrame->header.counter); }*/ pBuf[iLen] = NULL; strData = pBuf; m_data.Insert(m_data.GetLength(), strData); //display in server UpdateData(FALSE); //int strdatalength = iLen;; //m_clientSocket.Send(strData, iLen); //UpdateData(FALSE)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)