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
Why sockets are used?
What is a socket api?
How do I convert a string into an internet address?
How can I tell when a socket is closed on the other end?
What's the difference between impact sockets and regular sockets?
How many socket connections can a server handle?
What is socket programming in java?
What pieces of information make up a socket?
How many sockets can a cpu have?
What is active unix domain sockets?
What are the types of sockets?
How can I set the timeout for the connect() system call?
Can multiple clients connect to same socket?
What is difference between socket () and serversocket () class?
Why do I get EPROTO from read()?