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
How does a socket work?
Can a socket have multiple ports?
Is a socket a file?
Is there any advantage to handling the signal, rather than just ignoring it and checking for the EPIPE error? Are there any useful parameters passed to the signal catching function?
What is the difference between SO_REUSEADDR and SO_REUSEPORT?
How to find other end of unix socket connection?
What is the difference between a socket and a port?
How can I write a multi-homed server?
How are unix domain sockets implemented?
Why do we need socket programming?
What is a socket set used for?
How many socket connections can a server handle?
How do I convert a string into an internet address?
Are sockets files?
What is socket address?