Unix Socket Programming Question:
Download Questions PDF

How come select says there is data, but read returns zero?

Answer:

The data that causes select to return is the EOF because the other side has closed the connection. This causes read to return zero.

Download Unix Socket Programming Interview Questions And Answers PDF

Previous QuestionNext Question
How do I send [this] over a socket?How can I force a socket to send the data in its buffer?