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 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 i
Hello Arnold,
> Its stupid because I had finished my tool !!! I hope that its 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
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
Hello and thanks for these explanations
I thought that with async mode, I couldnt do sequential action. So if you
say me that its better in async mode that sync mode, Im going to test it.
Its stupid because I had finished my tool !!! I hope that its almost the
same thing to do !
Hello
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 t
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
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
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
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
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
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
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
13 matches
Mail list logo