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

What is af_inet in socket?

835


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

1655


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

1622


How are unix domain sockets implemented?

863


What is a socket file?

902


What is a sae socket?

935


What is socket address with example?

864


Why do we need socket programming?

883


Can multiple sockets use the same port?

881


How many sockets can a port have?

871


What is the difference between a socket and a port?

887


How is a socket created?

925


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

1368


What is a socket api?

891


What is a socket connection?

947