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?



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

When should I use UDP instead of TCP?

1 Answers  


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

1 Answers  


What is difference between socket and websocket?

0 Answers  


How would I put my socket in non-blocking mode?

1 Answers  


What is the difference between connected and unconnected sockets?

1 Answers  


of the socket? Does doing a connect() call affect the receive behaviour?

1 Answers  


Explain the TIME_WAIT state.

1 Answers  


What are socket exceptions? What is out-of-band data?

1 Answers  


What is the difference between SO_REUSEADDR and SO_REUSEPORT?

0 Answers  


How can I read ICMP errors from connected UDP sockets?

1 Answers  


Can multiple sockets use the same port?

0 Answers  


What is a socket set used for?

0 Answers  


Categories