Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is a sae socket?

929


How to find other end of unix socket connection?

892


Whats the difference between select() and poll()?

1646


What are the types of sockets?

934


What is the difference between SO_REUSEADDR and SO_REUSEPORT?

1807


What is af_inet in socket?

828


How many socket connections can a server handle?

861


How do unix sockets work?

861


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

1365


Is tcp or unix socket faster?

849


How do I convert a string into an internet address?

1381


What does af mean in sockets?

925


Is a socket a file?

865


What's better 6pt or 12pt sockets?

824


What is socket address?

1025