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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to find other end of unix socket connection?

887


How do I use TCP_NODELAY?

1555


Why sockets are used?

887


What is the difference between SO_REUSEADDR and SO_REUSEPORT?

1800


What is a socket address?

915


How can I tell when a socket is closed on the other end?

1346


What is a socket connection?

935


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

1641


What is the purpose of socket?

915


How many sockets can a cpu have?

841


Why do I get EPROTO from read()?

1447


How are unix domain sockets implemented?

852


Is tcp or unix socket faster?

847


What is socket address?

1022


What's better 6pt or 12pt sockets?

820