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

What is a socket set used for?

997


How can I set the timeout for the connect() system call?

1548


How many sockets can a cpu have?

889


Is a socket a file?

908


Can a single socket port be used for multiple applications?

924


How many sockets can a port have?

914


Why sockets are used?

934


How can I write a multi-homed server?

1690


What are the types of sockets?

969


What is socket address with example?

906


How do I use TCP_NODELAY?

1605


How to find other end of unix socket connection?

929


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

1407


Why does the sockets buffer fill up sooner than expected?

1391


Is socket a hardware or software?

968