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

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 i

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

2006-07-06 Thread Wilfried Mestdagh
Hello Arnold, > It’s stupid because I had finished my tool !!! I hope that it’s almost the > same thing to do ! If it is finished and working well then no need to change. It is not the same, but consider for a new project. It is not the same, it is different, but you have more control and you are

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

2006-07-05 Thread Arno Garrels
Wilfried Mestdagh wrote: >> And for the timeout, if I asked if there is a method to know the >> connection type or connection speed, it's because users can use this >> system with high speed connection or very low speed connection. > > If you use async you dont have to worry. Winsock will timeou

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

2006-07-05 Thread Arnold FLUTEAUX
Hello and thanks for these explanations I thought that with async mode, I couldn’t do sequential action. So if you say me that it’s better in async mode that sync mode, I’m going to test it. It’s stupid because I had finished my tool !!! I hope that it’s almost the same thing to do ! Hello

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 t

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 p

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 Arno Garrels
Arnold FLUTEAUX wrote: > Thanks. > When I've modified the ftpclient.timeout from 15 to 60, theses > disconnections had disappeared. 15 is far too short, why don't you make it an user option? > So I thought that this property was > important because it's used in "WaitUntilReady" function. Yes i

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

2006-07-04 Thread Arnold FLUTEAUX
09 +0200 From: "Arnold FLUTEAUX" <[EMAIL PROTECTED]> Subject: [twsocket] How can we automatically set timeout in FTP To: Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" Hello, I'm french. I'm using a FTP developing with

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 se

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

[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 the