Doug Billi wrote:
> I want my TCP client to timeout if it can't connect within 3 seconds.

Note, that if you call Connect with a host name TWSocket performs a 
blocking DNS lookup that cannot be canceled. Such blocking DNS lookup
also prevents the timeout timer from working. In order to be able to
cancel the DNS lookup request one has to use nonblocking method DnsLookup
first and call Connect with an IP address. The TimeoutConnect works
for Connect calls with IP address only, so it's a bit useless.

To unsubscribe or change your settings for TWSocket mailing list
please goto
Visit our website at

Reply via email to