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 |
Why do I get connection refused when the server is not running?
How do I send [this] over a socket?
What is a socket connection?
How do I properly close a socket?
What is the difference between connected and unconnected sockets?
How can I tell when a socket is closed on the other end?
What is difference between socket and websocket?
Why do we need sockets?
How can I put a timeout on connect()?
What's the difference between a socket and a port?
What is a sae socket?
Why sockets are used?