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?

931


How can I write a multi-homed server?

1692


What is the function of socket?

965


Is tcp or unix socket faster?

900


Can multiple clients connect to same socket?

953


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

1393


What exactly is a socket?

996


What does af mean in sockets?

996


Can multiple sockets use the same port?

924


How many socket connections can a server handle?

907


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

1565


How can I force a socket to send the data in its buffer?

1671


What is a socket api?

934


How many sockets can a cpu have?

891


How do I use TCP_NODELAY?

1612