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 can I set the timeout for the connect() system call?
What is the difference between a socket and a port?
system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?
What are the pros/cons of select(), non-blocking I/O and SIGIO?
What is af_inet in socket?
Are sockets files?
How does unix socket work?
Is socket a hardware or software?
Can multiple clients connect to same socket?
Can multiple sockets use the same port?
Where is the socket located?
What does af mean in sockets?
How is a socket created?
Are unix sockets faster than tcp?
Can a socket have multiple ports?