in reply to Sockets + Read
while (read($client,$buffer,1024) == 1024) { # loop only if the incoming data is more than 1k $read .= $buffer; } # at this point, the buffer contains data less than 1k # this is the last read done by the while loop. $read .= $buffer;
|
|---|