How come select says there is data, but read returns zero?
Answer Posted / 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 |
Post New Answer View All Answers
What is a sae socket?
How to find other end of unix socket connection?
Whats the difference between select() and poll()?
What are the types of sockets?
What is the difference between SO_REUSEADDR and SO_REUSEPORT?
What is af_inet in socket?
How many socket connections can a server handle?
How do unix sockets work?
What are the pros/cons of select(), non-blocking I/O and SIGIO?
Is tcp or unix socket faster?
How do I convert a string into an internet address?
What does af mean in sockets?
Is a socket a file?
What's better 6pt or 12pt sockets?
What is socket address?