#1 2015-07-21 07:59:50

dexter
Member
Registered: 2015-04-24
Posts: 53

SynCrtSock.TWinINet.InternalConnect

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

#2 2015-07-21 09:39:07

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: SynCrtSock.TWinINet.InternalConnect

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

#3 2015-07-21 10:37:16

dexter
Member
Registered: 2015-04-24
Posts: 53

Re: SynCrtSock.TWinINet.InternalConnect

I'm using TSQLHttpClient, but while browsing the code I noticed that typo.
Thanks.

Offline

Board footer

Powered by FluxBB