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
What is a socket set used for?
How can I set the timeout for the connect() system call?
How many sockets can a cpu have?
Is a socket a file?
Can a single socket port be used for multiple applications?
How many sockets can a port have?
Why sockets are used?
How can I write a multi-homed server?
What are the types of sockets?
What is socket address with example?
How do I use TCP_NODELAY?
How to find other end of unix socket connection?
What are the pros/cons of select(), non-blocking I/O and SIGIO?
Why does the sockets buffer fill up sooner than expected?
Is socket a hardware or software?