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 do we need sockets?
How many sockets can a cpu have?
Whats the difference between select() and poll()?
What is a socket set used for?
Are sockets files?
What is difference between socket () and serversocket () class?
What's the difference between a socket and a port?
How do unix sockets work?
How can I set the timeout for the connect() system call?
What pieces of information make up a socket?
Is socket a hardware or software?
What is a socket address?
How to find other end of unix socket connection?
What is a sae socket?
How can I force a socket to send the data in its buffer?