DWORD RecvCount = 0; char szBuff1[2048]; bool stop = false; while(!stop) { ioctlsocket(*socket, FIONREAD, &RecvCount); if(RecvCount > 1) stop = true; } int Res = recv(*socket, szBuff1, RecvCount,0);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)