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