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.

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

Reply via email to