Explain how to free up a port or release port in socket programming?
priyadarshan 26-October-2007 05:24:29 PM

Comments


www.fortunecity.com/skyscraper/arpanet/6/cc.htm
Posted by crouse


en.wikipedia.org/wiki/Berkeley_sockets
Posted by crouse


i think following data give you some details
"""Sometimes, a “rough” exit from a program (e.g., ctrl-c) does not properly free up a port
* Eventually (after a few minutes), the port will be freed
* To reduce the likelihood of this problem, include the following code:
#include
void cleanExit(){exit(0);}
* in socket code:
signal(SIGTERM, cleanExit);
signal(SIGINT, cleanExit);""""
Posted by waqasahmad


* Sometimes, a “rough” exit from a program (e.g., ctrl-c) does not properly free up a port
* Eventually (after a few minutes), the port will be freed
* To reduce the likelihood of this problem, include the following code:
#include
void cleanExit(){exit(0);}
* in socket code:
signal(SIGTERM, cleanExit);
signal(SIGINT, cleanExit);


Posted by eric



Posted: 26-October-2007 05:44:54 PM By: eric

* Sometimes, a “rough” exit from a program (e.g., ctrl-c) does not properly free up a port
* Eventually (after a few minutes), the port will be freed
* To reduce the likelihood of this problem, include the following code:
#include
void cleanExit(){exit(0);}
* in socket code:
signal(SIGTERM, cleanExit);
signal(SIGINT, cleanExit);


Posted: 31-December-2008 12:05:44 AM By: waqasahmad

i think following data give you some details
"""Sometimes, a “rough” exit from a program (e.g., ctrl-c) does not properly free up a port
* Eventually (after a few minutes), the port will be freed
* To reduce the likelihood of this problem, include the following code:
#include
void cleanExit(){exit(0);}
* in socket code:
signal(SIGTERM, cleanExit);
signal(SIGINT, cleanExit);""""

Posted: 08-October-2009 04:03:35 AM By: crouse

en.wikipedia.org/wiki/Berkeley_sockets

Posted: 08-October-2009 04:05:33 AM By: crouse

www.fortunecity.com/skyscraper/arpanet/6/cc.htm