Re: [twsocket] Fw: ICS : solution for iPlanet Web Proxy Server

2005-04-13 Thread Maurizio Lotauro
On 12-Apr-05 19:26:33 Francois PIETTE wrote: >- Original Message - >From: "a bloms" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> >Sent: Friday, April 08, 2005 7:41 AM >Subject: ICS : solution for iPlanet Web Proxy Server [...] >> The reason of the problem is the foll

Re: [twsocket] Multithreaded http...

2005-04-13 Thread Dan
Hmm... i checked it out, and it doesnt work correctly ;-( When im trying to get http://www.google.com with Display Data checked it doesnt show any data... ? "Start item 1: http://www.google.com Item 1 Data Finished Item 1 StatusCode = 0 http://www.google.com Error = 0 All Finished" Is there somet

Re: [twsocket] Multithreaded http...

2005-04-13 Thread Flash Thunder
- Original Message - From: "Francois PIETTE" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, April 13, 2005 10:13 PM Subject: Re: [twsocket] Multithreaded http... > > I'm kinda new in Delphi but i really really need to write some > > application... My application would h

Re: [twsocket] Multithreaded http...

2005-04-13 Thread Flash Thunder
- Original Message - From: "Francois PIETTE" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, April 13, 2005 10:13 PM Subject: Re: [twsocket] Multithreaded http... > There is a demo that do almost what you mant to do: HttpAsy. You can enter a > list of URL and get them ei

[twsocket] ThrottledWSocket

2005-04-13 Thread Dan
Since someone asked for demonstration code for throttling TFTPServer I have updated my throttle stuff a (tiny) bit. The components now register on the component palette and there is a TThrottledFtpServer. http://www.xantorrent.pwp.blueyonder.co.uk/ics/ThrottledWSocket.zip Feedback appreciated. D

Re: [twsocket] Multithreaded http...

2005-04-13 Thread Francois PIETTE
> I'm kinda new in Delphi but i really really need to write some > application... My application would have some TStringList where it would > contain urls... then i wouldlike to process this list in some threads... for > example 100 threads... the thread would get the content of url, run some > pro

Re: [twsocket] Multithreaded http...

2005-04-13 Thread Dan
Do you really need threads? ICS is asynchronous so multiple components can work in a single thread without blocking each other. Dan - Original Message - From: "Flash Thunder" <[EMAIL PROTECTED]> To: Sent: Wednesday, April 13, 2005 8:31 PM Subject: [twsocket] Multithreaded http... Hi

[twsocket] Multithreaded http...

2005-04-13 Thread Flash Thunder
Hi guys;-) I'm kinda new in Delphi but i really really need to write some application... My application would have some TStringList where it would contain urls... then i wouldlike to process this list in some threads... for example 100 threads... the thread would get the content of url, run some p

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

2005-04-13 Thread Angus Robertson - Magenta Systems Ltd
> Yea, I looked into this, and the related API calls on the MSDN site. > However, I also heard that sparse files lead to bad file > fragmentation, not sure if thats true or not though. By definition, a sparse file will be very fragmented, that's how it's designed. But I doubt TStream will be u

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

2005-04-13 Thread Dan
With NT and better (who really cares about Win9x any more), you can use sparse files, where the OS creates a file (potentially larger than the disk) but only allocates sectors as you write them. Once the file is complete, it would be copied to a normal file. Angus -- To unsubscribe or change your

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

2005-04-13 Thread Guillaume MAISON
> > I would do it by writing to temporary files. The reason is because > > when you start writing to an offset in a new file, the write call > > will block for a long time while Windows zeroes/randomizes the > > earlier bytes so that you cant read someone elses file that was > > previously in the

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

2005-04-13 Thread Angus Robertson - Magenta Systems Ltd
> I would do it by writing to temporary files. The reason is because > when you start writing to an offset in a new file, the write call > will block for a long time while Windows zeroes/randomizes the > earlier bytes so that you cant read someone elses file that was > previously in the same p

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

2005-04-13 Thread Fastream Technologies
Also he needs to set ftpNoAutoResume flag from options. When multiple files are used, I had to modify the ICS source code for one line since normally TFtpClient wants to seek the local file to the same offset as the remote ResumeAt and resumeAt is from the beginning of the entire file whereas th

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

2005-04-13 Thread Moacir Flávio Gonçalves
Yes, I mean temporary files, joining them when finished the parts Rm 12:2 - "E não vos conformeis com este século, mas transformai-vos pela renovação da vossa mente, para que experimenteis qual seja a boa, agradável e perfeita vontade de Deus." - Original Message - From: "Dan" <[EMAIL P

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

2005-04-13 Thread Francois Piette
> Multiple connections are made to the server. Each connection downloads a > separate part of the file and they are reassembled when downloading is > done. Eg part 1 would be the first 33% of the file, part 2 the 33-66% > part, and part 4 the 66-100% part. You can do that more or less like i've de

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

2005-04-13 Thread Dan
I would do it by writing to temporary files. The reason is because when you start writing to an offset in a new file, the write call will block for a long time while Windows zeroes/randomizes the earlier bytes so that you cant read someone elses file that was previously in the same place on the

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

2005-04-13 Thread Moacir Flávio Gonçalves
Well, I'm doing a guess here, thinking that must be a clever way to do it, BUT, I think, if you create 1 file with 33% of junk (just set one byte at the position), another with 66%, then CONTINUE downloading the 3 of then until the start of the next (controling with progress)... Finally, join in