How come I get address already in use from bind()?
Answer / 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 |
Is socket a hardware or software?
What pieces of information make up a socket?
How do I properly close a socket?
What is the function of socket?
What exactly is a socket?
How is a socket created?
How does a socket work?
How can I tell when a socket is closed on the other end?
What's the difference between impact sockets and regular sockets?
What is difference between socket and websocket?
What is the purpose of socket?
over the socket? Is there a way to have a dynamic buffer? What does one do when one does not know how much information is coming?