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 bind() to a port number < 1024?
How do I get my server to find out the clients address / host- name?
How can I tell when a socket is closed on the other end?
What is a deep well socket?
How come only the first part of my datagram is getting through?
How can I force a socket to send the data in its buffer?
How can I put a timeout on connect()?
How do I convert a string into an internet address?
What is af_inet in socket?
Why do I keep getting EINTR from the socket calls?
How do I send [this] over a socket?
What is socket programming in java?