You are not logged in.
Pages: 1
Hi,
below is the fragment from TWinINet.InternalConnect method:
procedure TWinINet.InternalConnect(ConnectionTimeOut,SendTimeout,ReceiveTimeout: DWORD);
[...]
InternetSetOption(fConnection,INTERNET_OPTION_SEND_TIMEOUT,
@ConnectionTimeOut,SizeOf(ConnectionTimeOut));
InternetSetOption(fConnection,INTERNET_OPTION_CONNECT_TIMEOUT,
@SendTimeout,SizeOf(SendTimeout));
[...]
Is it OK to assign ConnectionTimeOut to INTERNET_OPTION_SEND_TIMEOUT parameter
and
SendTimeout to INTERNET_OPTION_CONNECT_TIMEOUT ?
Offline
No - this was a typo.
Should be fixed by http://synopse.info/fossil/info/5006656cb9
IMHO you should not use TWinINet, which is very slow, unless you need to enter connection parameters (for a RTC modem for instance).
TWinHttp is preferred.
Offline
I'm using TSQLHttpClient, but while browsing the code I noticed that typo.
Thanks.
Offline
Pages: 1