Is there any data missing?
- by smwikipedia
Hi experts,
Here is some code quoted from Douglas.E.Comer's < Computer Networks and Internets 4th edition. This program will send back any data it received.
...
while((len = recv(conn, buff, BUFFERSIZE,0)) >0) // receive data
send(conn, buff, len, 0); // send it back
...
I am wondering, what if some data arrived when the code is executing in send(..) function, will it miss that data? Because the recv() function is not being executed. If no data is missed, where is the data kept? And by whom?
Thanks...