Re: timeout for "socket"?
- From: Pat Thoyts <cnggublgf@xxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 27 Jun 2008 11:00:22 GMT
ZB <zbREMOVE_THIS@xxxxxxxxxxxxxxxxxxxx> writes:
Im using "socket" for checking, if the site is "alive", just:
catch { socket $site 80 } err
...if "alive", then just "close $err" follows.
But I'm wondering, what about poor Internet connection case? Could be
possible to set longer timeout? How?
--
ZB
Have a look at the wiki for 'port scanning' - what you want to use is
a combination of [socket -async] and [after]
--
Pat Thoyts http://www.patthoyts.tk/
To reply, rot13 the return address or read the X-Address header.
PGP fingerprint 2C 6E 98 07 2C 59 C8 97 10 CE 11 E6 04 E0 B9 DD
.
- Follow-Ups:
- Re: timeout for "socket"?
- From: ZB
- Re: timeout for "socket"?
- References:
- timeout for "socket"?
- From: ZB
- timeout for "socket"?
- Prev by Date: strange tcl behavior
- Next by Date: Re: Adaptive Comboboxes
- Previous by thread: timeout for "socket"?
- Next by thread: Re: timeout for "socket"?
- Index(es):