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 |
How would I put my socket in non-blocking mode?
How many sockets can a port have?
How do I get my server to find out the clients address / host- name?
How does a socket work?
What is a socket api?
What is sae socket?
How can I force a socket to send the data in its buffer?
Why do not my sockets close?
What exactly does SO_KEEPALIVE do?
Why do I get EPROTO from read()?
What is Mac, and how is it different from PC? Which one is better for professional users, and why
1 Answers Evolving Systems, IBM,
Is a socket a file?