Re: [twsocket] How can we automatically set timeout in FTP

2006-07-06 Thread Arnold FLUTEAUX
Hello Wilfried, It’s true that it’s 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

Re: [twsocket] How can we automatically set timeout in FTP

2006-07-06 Thread Wilfried Mestdagh
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

[twsocket] How can we automatically set timeout in FTP

2006-07-04 Thread Arnold FLUTEAUX
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

Re: [twsocket] How can we automatically set timeout in FTP

2006-07-04 Thread Arno Garrels
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

Re: [twsocket] How can we automatically set timeout in FTP

2006-07-04 Thread Arnold FLUTEAUX
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

Re: [twsocket] How can we automatically set timeout in FTP

2006-07-04 Thread Arnold FLUTEAUX
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

Re: [twsocket] How can we automatically set timeout in FTP

2006-07-04 Thread Wilfried Mestdagh
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

Re: [twsocket] How can we automatically set timeout in FTP

2006-07-04 Thread Arnold FLUTEAUX
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

Re: [twsocket] How can we automatically set timeout in FTP

2006-07-04 Thread Wilfried Mestdagh
Hello Arnold, need to do these transfers step by step and stop it in case of problem. I can’t download or upload several files in same times; that’s why I’m 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