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 |
How do I get my server to find out the clients address / host- name?
What is socket programming in java?
Why do I keep getting EINTR from the socket calls?
How do unix sockets work?
How can I read only one character at a time?
Is there any advantage to handling the signal, rather than just ignoring it and checking for the EPIPE error? Are there any useful parameters passed to the signal catching function?
How does unix socket work?
How often should I re-transmit un-acknowleged messages?
What does af mean in sockets?
What is the function of socket?
What's the difference between a socket and a port?
What is the purpose of socket?