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



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

Post New Answer

More Unix Socket Programming Interview Questions

How are unix domain sockets implemented?

0 Answers  


How does unix socket work?

0 Answers  


What is socket address?

0 Answers  


What are the pros/cons of select(), non-blocking I/O and SIGIO?

0 Answers  


How do I use TCP_NODELAY?

0 Answers  


How to find other end of unix socket connection?

0 Answers  


How do I get my server to find out the clients address / host- name?

1 Answers  


When will my application receive SIGPIPE?

1 Answers  


How is a socket created?

0 Answers  


What is the purpose of socket?

0 Answers  


Is tcp or unix socket faster?

0 Answers  


What is a socket address?

0 Answers  


Categories