How come select says there is data, but read returns zero?
Answer / chaitanya
The data that causes select to return is the EOF because the other side has closed the connection. This causes read to return zero.
Is This Answer Correct ? | 0 Yes | 0 No |
How can I be sure that UDP messages are received in order?
over the socket? Is there a way to have a dynamic buffer? What does one do when one does not know how much information is coming?
What is af_inet in socket?
How can I read ICMP errors from connected UDP sockets?
Why do we need socket programming?
How can I force a socket to send the data in its buffer?
How do Sockets Work?
What is difference between socket and websocket?
How does a socket work?
Why does the sockets buffer fill up sooner than expected?
Why do I get connection refused when the server is not running?
system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?