Answer Posted / chaitanya
This question is usually asked by people who try close(), because they have seen that that is what they are supposed to do, and then run netstat and see that their socket is still active. Yes, close() is the correct method. To read about the TIME_WAIT state, and why it is important, refer to ``2.7 Please explain the TIME_WAIT state.''.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between SO_REUSEADDR and SO_REUSEPORT?
system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?
What is socket address?
How do I convert a string into an internet address?
What is the difference between a socket and a port?
How do unix sockets work?
What is a socket api?
What does af mean in sockets?
What is a deep well socket?
Can a single socket port be used for multiple applications?
How can I force a socket to send the data in its buffer?
What is the function of socket?
How can I set the timeout for the connect() system call?
Is tcp or unix socket faster?
How can I tell when a socket is closed on the other end?