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...


If bind() fails, what should I do with the socket descriptor?



If bind() fails, what should I do with the socket descriptor?..

Answer / chaitanya

If you are exiting, I have been assured by Andrew that all unixes will close open file descriptors on exit. If you are not exiting though, you can just close it with a regular close() call.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Unix Socket Programming Interview Questions

What exactly does SO_REUSEADDR do?

1 Answers  


What pieces of information make up a socket?

0 Answers  


Where is the socket located?

0 Answers  


How do I send [this] over a socket?

1 Answers  


Are sockets files?

0 Answers  


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

1 Answers  


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

1 Answers  


How can I put a timeout on connect()?

1 Answers  


What is the difference between connected and unconnected sockets?

1 Answers  


What is af_inet in socket?

0 Answers  


How can I be sure that UDP messages are received in order?

1 Answers  


What is socket address with example?

0 Answers  


Categories