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...


What exactly does SO_REUSEADDR do?



What exactly does SO_REUSEADDR do?..

Answer / chaitanya

This socket option tells the kernel that even if this port is busy (in the TIME_WAIT state), go ahead and reuse it anyway. If it is busy, but with another state, you will still get an address already in use error. It is useful if your server has been shut down, and then restarted right away while sockets are still active on its port. You should be aware that if any unexpected data comes in, it may confuse your server, but while this is possible, it is not likely.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Socket Programming Interview Questions

How is a socket created?

0 Answers  


Why do I get EPROTO from read()?

0 Answers  


Where can a get a library for programming sockets?

1 Answers  


What does af mean in sockets?

0 Answers  


How do I convert a string into an internet address?

0 Answers  


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

1 Answers  


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

0 Answers  


How come select says there is data, but read returns zero?

1 Answers  


What is the function of socket?

0 Answers  


How do unix sockets work?

0 Answers  


If bind() fails, what should I do with the socket descriptor?

1 Answers  


What is the difference between close() and shutdown()?

1 Answers  


Categories