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 can I tell when a socket is closed on the other end?

1306


Are sockets files?

830


What is sae socket?

782


What is a socket set used for?

909


Why does the sockets buffer fill up sooner than expected?

1295


Are unix sockets faster than tcp?

812


How does unix socket work?

855


Can multiple sockets use the same port?

829


system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?

1574


How do I convert a string into an internet address?

1336


What is a socket api?

853


What exactly is a socket?

889


How many sockets can a port have?

815


What is socket programming in java?

801


How is a socket created?

869