> *Subject:* [twsocket] Connect() time out
> *From:* "Max Terentiev" <[EMAIL PROTECTED]>
> *To:* "ICS support mailing" <twsocket@elists.org>
> What is proper way to cancel Connect() by timeout ? 

You can not cancel a pending connection attempt.  All you can do is 
changes Windows registry settings to reduce the timeout, which can 
potentially cause other problems. 

A workaround is to ping the server first, with a configurable timeout, 
perhaps five seconds, to avoid a 40 second connect timeout. 
But this only proves the server exists, not that a socket is listening.

Angus
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to