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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Is socket a hardware or software?

966


Why does the sockets buffer fill up sooner than expected?

1387


What is a deep well socket?

980


What's the difference between impact sockets and regular sockets?

903


What is sae socket?

886


How can I write a multi-homed server?

1688


How many socket connections can a server handle?

904


What is difference between socket and websocket?

956


What is a socket set used for?

995


What is socket address with example?

904


What is the difference between read() and recv()?

2016


Why do I get EPROTO from read()?

1492


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

1386


What is a socket api?

932


Why do we need sockets?

885