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 are Sockets?

1 Answers  


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

0 Answers  


What is sae socket?

0 Answers  


Is a socket a file?

0 Answers  


What is difference between socket and websocket?

0 Answers  


What is active unix domain sockets?

0 Answers  


What is a socket set used for?

0 Answers  


Why does it take so long to detect that the peer died?

0 Answers  


How come I get address already in use from bind()?

1 Answers  


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

1 Answers  


Are unix sockets faster than tcp?

0 Answers  


What's better 6pt or 12pt sockets?

0 Answers  


Categories