Re: Re[4]: [twsocket] Is there a way to setup a value for maximal downloadspeed?

2005-04-10 Thread Mice Cage
Sorry but this was wrong. I found the solution: If X=0 Then Begin If ForceSleep Then begin Application.ProcessMessages; Sleep(x); end Else MsgWaitForMultipleObjects(0,msgHandles,False,X,QS_SENDMESSAGE); End; Application.ProcessMessages is the solution.

Re[6]: [twsocket] Is there a way to setup a value for maximal downloadspeed?

2005-04-10 Thread Wilfried Mestdagh
Hello Mice, Application.ProcessMessages; Sleep(x); Bad idea :( Pumping messages will have your event re-entered and thus produce unpredicable results. If you wants to do that then you have to write a mechanism to prevent it. It is mutch better to use the MsgWait function, as I

Re: [twsocket] Is there a way to setup a value for maximal downloadspeed?

2005-04-09 Thread Wilfried Mestdagh
Hello Mice, I'm working on a ftpclient. If it is possible with FTPCLI I want to add a feature to setup the maximal downloadspeed Several aproach are possible. One aproach is to create FtpCli in a thread and use throttling code you can find on http://www.smatters.com/ics Other aproach are to