Re: Re[2]: [twsocket] Is there a way to setupa valuefor maximal downloadspeed?

2005-04-12 Thread Mice Cage
THX for the reply. I'll keep the method I posted. It is working without a problem. > Hehe, unfortunately, its a little more difficult than that...you'll need > to > derive your own TFTPClient and make it use TThrottledWSocket internally > instead of TWSocket. > Make sure this is for the data con

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

2005-04-10 Thread Mice Cage
Yes I tried it, but it slow down my stats and if I clicked on abort the program abort the transfer with a delay ... Maybe I'll add Dan's code, if he can give me a short example how to use his functions ... ;) > Hello Mice, > > > Do You have a exsample for msgWait? > > this is my previous mail. Y

Re: Re[2]: [twsocket] Is there a way to setup a valuefor maximal downloadspeed?

2005-04-10 Thread Mice Cage
t.pwp.blueyonder.co.uk/ics/uThrottledWSocket.pas > > Dan > > - Original Message - > From: "Mice Cage" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Sunday, April 10, 2005 12:02 PM > Subject: Re: Re[2]: [twsocket] Is there a wa

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

2005-04-10 Thread Mice Cage
Do You have a exsample for msgWait? Till now no strange things happend. Sleep freezes the mainform and in a other tip the solve it also with Application.ProcessMessages. The code is designed for multithreads, so it shouldn't be used in thy case I need it for. > Hello Mice, > > > Applicatio

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. Mayb

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

2005-04-10 Thread Mice Cage
This function uses sleep, so it is clear why it freezes my app. Timers are the only solution. ... but I don't have a clue how to implent a timer into the delayfunction with the same function like sleep but without freazing the app. -- Sparen beginnt mit GMX DSL: http://www.gmx.net/de/go/dsl --

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

2005-04-10 Thread Mice Cage
I implented it directly into the Main-Form like this: var Form1: TForm1; {some variables} MYCounterMax:Integer; MYLastProgressTime:Integer; MYLastProgressCount:Integer; MYLastMaxRate:Integer; MYLastSleep:Integer; MYLastChunkSize:Integer; MyLastCountValue:Integer; BytesReadIn:Integer;

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

2005-04-09 Thread Mice Cage
THX Wilfried, Do You have a little sample-application for delphi or can help me to implent Your great code to my program. I'm coding with Delphi7. I tried 1h to get the code into my app, but I didn't. THX in advance. -- Sparen beginnt mit GMX DSL: http://www.gmx.net/de/go/dsl -- To unsubscri

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

2005-04-08 Thread Mice Cage
I'm working on a ftpclient. If it is possible with FTPCLI I want to add a feature to setup the maximal downloadspeed, so the user can use his internet-connection for other things. Is is found for example in Leechget or smartftp. -- Sparen beginnt mit GMX DSL: http://www.gmx.net/de/go/dsl -- To

[twsocket] Is there a way to download a file in threads?

2005-04-08 Thread Mice Cage
Some of You guys know Leechget and downloadmanager like that. They have an option to download a file in threads. Is it possible with FTPCLI to setup ranges to download a file in threads? When Yes, how? -- Handyrechnung zu hoch? Tipp: SMS und MMS mit GMX Seien Sie so frei: Alle Infos unter http://

[twsocket] FTPClient UNIX-Server - How to setup binary mode? - is this the right way?

2005-03-29 Thread Mice Cage
I know now that I have to use the Typeset-Command. I hope I placed it now at the right place: FtpClient1.HostName := HostNameEdit.Text; FtpClient1.Port := PortEdit.Text; FtpClient1.UserName := UserNameEdit.Text; FtpClient1.Password := P

Re: [twsocket] RE2: FTPClient Get-Command-Problem on UNIX-Server

2005-03-29 Thread Mice Cage
;} Ftpclient1.connect; ftpclient1.cwd; FtpClient1.TypeSet; ftpclient1.get; FtpClient1.Quit; I know that Indy is easier, but FTPCLI is much better in my tool and more stable. THX for all Your help. I know that the truth is out there ;) ... hope we find it ... > Mice Cage wr

[twsocket] RE2: FTPClient Get-Command-Problem on UNIX-Server

2005-03-29 Thread Mice Cage
THX for Your reply. The problem is that I tried everything. I used Your FTPTest Sample (Ftptst.dpr). I used Binary and without Binary. Also Sync and Async. Same result. The File is a RAR-Archive-Part. So it is no text. I tested over 3 hours. The filesize is 1500 Bytes using the filesize-comman