Answer Posted / chaitanya
This socket option tells the kernel that even if this port is busy (in the TIME_WAIT state), go ahead and reuse it anyway. If it is busy, but with another state, you will still get an address already in use error. It is useful if your server has been shut down, and then restarted right away while sockets are still active on its port. You should be aware that if any unexpected data comes in, it may confuse your server, but while this is possible, it is not likely.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is a socket a file?
How to find other end of unix socket connection?
What is socket programming in java?
Why do we need sockets?
What are the types of sockets?
What is a socket address?
What is the purpose of socket?
How can I set the timeout for the connect() system call?
How can I tell when a socket is closed on the other end?
What is the difference between read() and recv()?
Why does the sockets buffer fill up sooner than expected?
Whats the difference between select() and poll()?
system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?
What is af_inet in socket?
What pieces of information make up a socket?