Hello Wilfried,
Its true that its OK in sync mode with increasing or decreasing the
timeout but I want to try the async mode. So, I put my code in RequestDone
event and I launch async method step by step in testing the errcode
(parameter of RequestDone).
Are you sure that all errors will pass
Hello Arnold,
Correct, if I'm not mistaken you in fact only need OnRequestDone to
check the flow / errors / do next action.
There you check ErrCode, if 0 there is server or winsock error.
winsock error = 1. Also check RequestType to check the state of
the component. You probably want
Hello,
I'm french. I'm using a FTP developing with ICS FTP client. It's really good
!
I've question on the timeout.
With a high speed connection, the timeout is equal to 15 seconds. But with a
very low connection (9,6 kbits/s) , they are several problems and the ftp
disconnect itself with
Arnold FLUTEAUX wrote:
I've question on the timeout.
With a high speed connection, the timeout is equal to 15 seconds. But
with a very low connection (9,6 kbits/s) , they are several problems
and the ftp disconnect itself with the message 500 Connection closed
time out (winsock error
Thanks.
When I've modified the ftpclient.timeout from 15 to 60, theses
disconnections had disappeared. So I thought that this property was
important because it's used in WaitUntilReady function. And according to
me, I wanted to set automatically this property with the speed of
connections. 15
From: Arnold FLUTEAUX [EMAIL PROTECTED]
Subject: [twsocket] How can we automatically set timeout in FTP
To: twsocket@elists.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=us-ascii
Hello,
I'm french. I'm using a FTP developing with ICS FTP client. It's really good
Hello Arnold,
But in my test, I'm used Put method, not putAsync method.
Please try the async methods, it is more encouraged :)
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
--
To unsubscribe or change your settings for TWSocket mailing
Hello,
In fact, I must send files and then receive files. But I must send and
receive theses files in respecting their creating/modificating date. And for
example, if a file is not received correctly, I must stop the connection. I
need to do these transfers step by step and stop it in case of
Hello Arnold,
need to do these transfers step by step and stop it in case of problem. I
cant download or upload several files in same times; thats why Im using
synchronous methods and not asynchronous.
I understeand, but that is not a reason to go sync or async. For example
if you need to