while (receivePacket() >= 0) { /* Receive until the last packet */ }
while ((tempReceiveSize = receivePacket()) > 0) { totalReceiveSize += tempReceiveSize;
while (receivePacket() >= 0) { /* Receive until the last packet */ }
while (receivePacket() > 0) {}
while (receivePacket() >= 0) { /* Receive until the last packet */ }