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

How come I get address already in use from bind()?

Answer Posted / chaitanya

You get this when the address is already in use. (Oh, you figured that much out?) The most common reason for this is that you have stopped your server, and then re-started it right away. The sockets that were used by the first incarnation of the server are still active. This is further explained in ``2.7 Please explain the TIME_WAIT state.'', and ``2.5 How do I properly close a socket?''.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many socket connections can a server handle?

862


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

1615


How do I use TCP_NODELAY?

1559


What is the function of socket?

918


What is a socket api?

886


What is a socket address?

922


How to find other end of unix socket connection?

892


What is difference between socket and websocket?

908


What exactly is a socket?

949


What's better 6pt or 12pt sockets?

824


What is a socket file?

897


What is a socket set used for?

959


Can multiple sockets use the same port?

878


Why sockets are used?

894


What is sae socket?

842