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

How do I get my server to find out the clients address / host- name?

1 Answers  


What exactly does SO_REUSEADDR do?

1 Answers  


When will my application receive SIGPIPE?

1 Answers  


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

0 Answers  


What is LILO?

2 Answers  


What are raw sockets?

4 Answers   Axis Technologies,


How do I get the port number for a given service?

1 Answers  


How are unix domain sockets implemented?

0 Answers  


Why does connect() succeed even before my server did an accept()?

1 Answers  


Is socket a hardware or software?

0 Answers  


How does a socket work?

0 Answers  


How many sockets can a cpu have?

0 Answers  


Categories