Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do I properly close a socket?



How do I properly close a socket?..

Answer / 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

More Unix Socket Programming Interview Questions

What is a sae socket?

0 Answers  


Why sockets are used?

0 Answers  


system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?

0 Answers  


What are socket exceptions? What is out-of-band data?

1 Answers  


What is socket address?

0 Answers  


How often should I re-transmit un-acknowleged messages?

1 Answers  


How can I tell when a socket is closed on the other end?

0 Answers  


What is the purpose of socket?

0 Answers  


How can I read only one character at a time?

1 Answers  


How can I force a socket to send the data in its buffer?

0 Answers  


Can a single socket port be used for multiple applications?

0 Answers  


How can I find the full hostname (FQDN) of the system I am running on?

1 Answers  


Categories