hi,
i find and use fine class described on thread708-970319, thanks BobRodes.
i would like to know how to configure time-out to ftp connection and define time-out to ftp request(put).
thanks 4 your time.
That isn't my code. I just found it and borrowed it. You might find an answer on the link where I got it. Off the top of my head, I'd try looping around the openconnection method for a specified time and error out after so many tries.
but only found some description..i found some information to use assynchrono comunication, other saying that MS sont expect work fine with that kind of comunication.....i'm lost..........
i think i solved my problem, at least i dont wait about 2 minutes from ftp server answer.....
easy...
on module add
Public Const INTERNET_OPTION_CONNECT_TIMEOUT = 2
Public Const INTERNET_OPTION_RECEIVE_TIMEOUT = 6
Public Const INTERNET_OPTION_SEND_TIMEOUT = 5
before call InterConnect
Dim dwTimeOut As Long
dwTimeOut = 2000
iRetVal = InternetSetOption(m_hSession, INTERNET_OPTION_CONNECT_TIMEOUT, _
dwTimeOut, 4)
iRetVal = InternetSetOption(m_hSession, INTERNET_OPTION_RECEIVE_TIMEOUT, _
dwTimeOut, 4)
iRetVal = InternetSetOption(m_hSession, INTERNET_OPTION_SEND_TIMEOUT, _
dwTimeOut, 4)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.