Hi,
I am currently working on a client server program and when the server sends a packet over - I have the following
while(( n = read(socket, receive_buffer, BUFLEN)) > 0)
{ receive_buffer[n] = 0;
fputs(receive_buffer, stdout);
}
return;
where BUFLEN = 100, to receive the info from the server. so this will loop through until I am done reading everything, the problem I am having is it dosen't return when it should. Any ideas what I can do?
Thanks in advance