d-fan
2008-06-06 06:43:46 UTC
How can I open a socket connection with a timeout? Currently when I
make a call like "var = socket(" if the internet is down or there is
a problem reaching the destination computer, my programs behaves like
it is freezing. It here a way to control this behavior via a timeout
or any other method so that if the destination cannot then my program
will not hang?
make a call like "var = socket(" if the internet is down or there is
a problem reaching the destination computer, my programs behaves like
it is freezing. It here a way to control this behavior via a timeout
or any other method so that if the destination cannot then my program
will not hang?