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
Why sockets are used?
Why do we need socket programming?
Can a single socket port be used for multiple applications?
What is socket address?
What's the difference between impact sockets and regular sockets?
Why do we need sockets?
How does a socket work?
What is a deep well socket?
Is tcp or unix socket faster?
Where is the socket located?
Can a socket have multiple ports?
How can I force a socket to send the data in its buffer?
What are the types of sockets?
What is the difference between a socket and a port?
What are the pros/cons of select(), non-blocking I/O and SIGIO?