>> Correct, the calling thread won't be blocked.
> Arno,
> I have checked the ICS code, and I found this:
> OverbyteIcsWSocket.pas on line 7290 (TCustomWSocket.Connect)
>         if not FAddrResolved then begin
>             { The next line will trigger an exception in case of
>             failure } sin.sin_addr.s_addr :=
> WSocket_Synchronized_ResolveHost(AnsiString(FAddrStr)).s_addr;
>             FAddrResolved := TRUE;
>         end;
> So, when I first call connect, it will try to resolve the host by
> using WSocket_Synchronized_ResolveHost

Sorry I misunderstood. I thought you used method DnsLookup.
So in this case it is simple to fix, call method DnsLookup and connect
with a dotted IP address from the OnDnsLookupDone event handler.

Arno Garrels 

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

Reply via email to