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 |
Is tcp or unix socket faster?
What is LILO?
How many sockets can a cpu have?
Can multiple clients connect to same socket?
How are unix domain sockets implemented?
What is the difference between connected and unconnected sockets?
How can I put a timeout on connect()?
Why sockets are used?
Where is the socket located?
of the socket? Does doing a connect() call affect the receive behaviour?
What are raw sockets?
What does af mean in sockets?