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

2005-04-15 Thread Fastream Technologies
I don't want to discuss this topic anymore, by you or anyone else. This is 
defenitely out of topic.
However you wish. You are the owner/boss here!
Thanks,
SZ 

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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

2005-04-15 Thread Francois Piette
> I am sorry for disturbing you but I am not sure I understood your point.
> Isn't ICS in competition with other components like

The support mailing list is defenitely not the place to discuss about 
competitors or compare
features or design decisions and goals. Use borland winsock forum or other 
public forum for that
purpose.

I don't want to discuss this topic anymore, by you or anyone else. This is 
defenitely out of topic.

> How can we suggest new features if we cannot give examples?

Just stay on a technical level. It doesn't help saying that other product 
implement a feature you
find interresting. Just say you need a given feature and describe it without 
reference to other
products. And always use an appropriate subject message.

I don't want to discuss this topic anymore, by you or anyone else. This is 
defenitely out of topic.

--
[EMAIL PROTECTED]
http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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

2005-04-15 Thread Fastream Technologies
I am sorry for disturbing you but I am not sure I understood your point. 
Isn't ICS in competition with other components like Indy and Wininet? How 
can we suggest new features if we cannot give examples?

I believe we should not fear from competition; instead we should keep an eye 
on them and improve ours and catch them with our favorite Internet component 
suite that is ICS.

Thanks,
SZ
- Original Message - 
From: "Corey Murtagh" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Thursday, April 14, 2005 9:47 PM
Subject: Re: [twsocket] Is there a way to download a file in threads?


Fastream Technologies wrote:
But this is a decision that affects ICS developers since MS is the owner 
of the OS and Winsock therefore can shed some light with its design. I 
did not have any malign intentions.
Be that as it may, discussions of the /design decisions/ that lead to the 
current state are neither useful nor topical here as they do not relate to 
the ICS components in the slightest.  The current state itself is 
topical... in as much as it relates to the functioning of the components 
and no further.

All that aside, Francois is the owner of this mailing list.  If he asks 
you to desist from certain behavior - like promoting your own products, 
discussing other network component suites, or trying to discuss irrelevant 
things like Microsoft's reasons for doing something - then it is churlish 
to continue to do so, or to attempt to justify yourself.

--
Corey Murtagh
The Electric Monk
"Quidquid latine dictum sit, altum viditur."
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be 

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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

2005-04-14 Thread Corey Murtagh
Fastream Technologies wrote:
But this is a decision that affects ICS developers since MS is the 
owner of the OS and Winsock therefore can shed some light with its 
design. I did not have any malign intentions.
Be that as it may, discussions of the /design decisions/ that lead to 
the current state are neither useful nor topical here as they do not 
relate to the ICS components in the slightest.  The current state itself 
is topical... in as much as it relates to the functioning of the 
components and no further.

All that aside, Francois is the owner of this mailing list.  If he asks 
you to desist from certain behavior - like promoting your own products, 
discussing other network component suites, or trying to discuss 
irrelevant things like Microsoft's reasons for doing something - then it 
is churlish to continue to do so, or to attempt to justify yourself.

--
Corey Murtagh
The Electric Monk
"Quidquid latine dictum sit, altum viditur."
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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

2005-04-14 Thread Fastream Technologies
But this is a decision that affects ICS developers since MS is the owner of 
the OS and Winsock therefore can shed some light with its design. I did not 
have any malign intentions.

Regards,
SZ
- Original Message - 
From: "Francois Piette" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Thursday, April 14, 2005 12:42 PM
Subject: Re: [twsocket] Is there a way to download a file in threads?


 > why did MS chose threads?
This is not the place to discuss Microsoft design decision.
Please use a general purpose mailing list or newsgroup for that topic.
Please focus on ICS !
--
[EMAIL PROTECTED]
http://www.overbyte.be
- Original Message - 
From: "Fastream Technologies" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Thursday, April 14, 2005 11:28 AM
Subject: Re: [twsocket] Is there a way to download a file in threads?


You seem to be right and I can understand why Apache has chosen threaded 
way
(for UNIX compatibility) but why did MS chose threads? What about I/O
optimization. For example async freezes when a buffer of I/O is being 
read
whereas threads to better disk/socket I/O?

SZ
- Original Message - 
From: "Primoz Gabrijelcic" <[EMAIL PROTECTED]>
To: "'ICS support mailing'" 
Sent: Thursday, April 14, 2005 11:59 AM
Subject: RE: [twsocket] Is there a way to download a file in threads?

>> Well, async cannot take advantage of multi-processor systems.
>> Also for CGI and ISAPI execution, threads seem to be a better
>> way. And all the commercial Web servers I know such as IIS
>> and Apache chose it for these reasons.
>
> You are mixing up two factors.
>
> Even on multi-processor system, one CPU is usually enough to handle
> connections.  That doesn't prevent you from creating additional threads 
> to
> process CGI and ISAPI requests - nobody says that such requests must
> execute
> in the context of the thread handling socket connections.
>
> One of my commercial designs is using this approach and it is working 
> just
> great.
>
> Best regards,
> Primoz
>
>
> -- 
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://www.elists.org/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be 

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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

2005-04-14 Thread Francois Piette
  > why did MS chose threads?

This is not the place to discuss Microsoft design decision.
Please use a general purpose mailing list or newsgroup for that topic.
Please focus on ICS !

--
[EMAIL PROTECTED]
http://www.overbyte.be

- Original Message - 
From: "Fastream Technologies" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Thursday, April 14, 2005 11:28 AM
Subject: Re: [twsocket] Is there a way to download a file in threads?


> You seem to be right and I can understand why Apache has chosen threaded way 
> (for UNIX compatibility) but why did MS chose threads? What about I/O 
> optimization. For example async freezes when a buffer of I/O is being read 
> whereas threads to better disk/socket I/O?
> 
> SZ
> 
> - Original Message - 
> From: "Primoz Gabrijelcic" <[EMAIL PROTECTED]>
> To: "'ICS support mailing'" 
> Sent: Thursday, April 14, 2005 11:59 AM
> Subject: RE: [twsocket] Is there a way to download a file in threads?
> 
> 
> >> Well, async cannot take advantage of multi-processor systems.
> >> Also for CGI and ISAPI execution, threads seem to be a better
> >> way. And all the commercial Web servers I know such as IIS
> >> and Apache chose it for these reasons.
> >
> > You are mixing up two factors.
> >
> > Even on multi-processor system, one CPU is usually enough to handle
> > connections.  That doesn't prevent you from creating additional threads to
> > process CGI and ISAPI requests - nobody says that such requests must 
> > execute
> > in the context of the thread handling socket connections.
> >
> > One of my commercial designs is using this approach and it is working just
> > great.
> >
> > Best regards,
> > Primoz
> >
> >
> > -- 
> > To unsubscribe or change your settings for TWSocket mailing list
> > please goto http://www.elists.org/mailman/listinfo/twsocket
> > Visit our website at http://www.overbyte.be 
> 
> 
> -- 
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://www.elists.org/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
> 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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

2005-04-14 Thread Fastream Technologies
You seem to be right and I can understand why Apache has chosen threaded way 
(for UNIX compatibility) but why did MS chose threads? What about I/O 
optimization. For example async freezes when a buffer of I/O is being read 
whereas threads to better disk/socket I/O?

SZ
- Original Message - 
From: "Primoz Gabrijelcic" <[EMAIL PROTECTED]>
To: "'ICS support mailing'" 
Sent: Thursday, April 14, 2005 11:59 AM
Subject: RE: [twsocket] Is there a way to download a file in threads?


Well, async cannot take advantage of multi-processor systems.
Also for CGI and ISAPI execution, threads seem to be a better
way. And all the commercial Web servers I know such as IIS
and Apache chose it for these reasons.
You are mixing up two factors.
Even on multi-processor system, one CPU is usually enough to handle
connections.  That doesn't prevent you from creating additional threads to
process CGI and ISAPI requests - nobody says that such requests must 
execute
in the context of the thread handling socket connections.

One of my commercial designs is using this approach and it is working just
great.
Best regards,
Primoz
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be 

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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

2005-04-14 Thread Primož Gabrijelčič
> Well, async cannot take advantage of multi-processor systems. 
> Also for CGI and ISAPI execution, threads seem to be a better 
> way. And all the commercial Web servers I know such as IIS 
> and Apache chose it for these reasons.

You are mixing up two factors.

Even on multi-processor system, one CPU is usually enough to handle
connections.  That doesn't prevent you from creating additional threads to
process CGI and ISAPI requests - nobody says that such requests must execute
in the context of the thread handling socket connections.

One of my commercial designs is using this approach and it is working just
great.

Best regards,
Primoz


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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

2005-04-14 Thread Fastream Technologies
Hello,
Well, async cannot take advantage of multi-processor systems. Also for CGI 
and ISAPI execution, threads seem to be a better way. And all the commercial 
Web servers I know such as IIS and Apache chose it for these reasons.

Best Regards,
SZ
- Original Message - 
From: "Bjørnar Nielsen" <[EMAIL PROTECTED]>
To: "'ICS support mailing'" 
Sent: Thursday, April 14, 2005 10:38 AM
Subject: RE: [twsocket] Is there a way to download a file in threads?



The only shortcoming of ICS is the web server which has no official and/or
optimized CGI/ISAPI
component and by design async which is bad for a web server.
SZ, why do you think async design is bad for a webserver?
Regards Bjørnar

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be 

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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

2005-04-14 Thread Bjørnar Nielsen
 

> The only shortcoming of ICS is the web server which has no official and/or
optimized CGI/ISAPI
> component and by design async which is bad for a web server. 

SZ, why do you think async design is bad for a webserver?

Regards Bjørnar



--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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 unable to write to several 
positions in the same file, so each part of the FTP transfer would 
need to come back into a temporary file. 

Angus

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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 settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
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.

Dan 

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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 same place on the disk.
>
> 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.
>

that's the trick Angus...

Still a lot of people cares about Win9x...
i can see many computers coming at my company
to be repaired still working with Win95/98/Me...

Guillaume MAISON
-
Guillaume MAISON - [EMAIL PROTECTED]
83, Cours Victor Hugo
47000 AGEN
Tél : 05 53 87 91 48 - Fax : 05 53 68 73 50
e-mail : [EMAIL PROTECTED] - Web : http://nauteus.com


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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 place on the disk.

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 settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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 the 
local seek should be from the beginning of the segment.

I worked on this yesterday and I know what I am talking about. ;)
Best Regards,
SZ
- Original Message - 
From: "Dan" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Wednesday, April 13, 2005 3:27 PM
Subject: Re: [twsocket] Is there a way to download a file in threads?


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 
disk. I did a BitTorrent client where it writes pieces randomly into the 
file and the whole application would lock up when it first starts writing 
to the end of the file because of this blocking.
As for how to retrieve pieces of the file, just do a REST to set your 
starting offset, and in your progress event or whatever you use, check if 
you have received enough data from that connection and close the data 
socket it if you have (you might receive slightly more than you wanted for 
that connection but who cares).

Dan
- Original Message - 
From: "Moacir Flávio Gonçalves" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Wednesday, April 13, 2005 11:40 AM
Subject: Re: [twsocket] Is there a way to download a file in threads?


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 one file. Like I said, only guessing...

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: "Nicholas Sherlock" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Wednesday, April 13, 2005 2:46 AM
Subject: Re: [twsocket] Is there a way to download a file in threads?


Francois PIETTE wrote:
Some of You guys know Leechget and downloadmanager like that.
They have an option to download a file in threads.
Can you describe this feature because I don't know those programs.

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.

Cheers,
Nicholas Sherlock
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be 

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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 PROTECTED]>
To: "ICS support mailing" 
Sent: Wednesday, April 13, 2005 9:27 AM
Subject: Re: [twsocket] Is there a way to download a file in threads?


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 
disk. I did a BitTorrent client where it writes pieces randomly into the 
file and the whole application would lock up when it first starts writing 
to the end of the file because of this blocking.
As for how to retrieve pieces of the file, just do a REST to set your 
starting offset, and in your progress event or whatever you use, check if 
you have received enough data from that connection and close the data 
socket it if you have (you might receive slightly more than you wanted for 
that connection but who cares).

Dan
- Original Message - 
From: "Moacir Flávio Gonçalves" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Wednesday, April 13, 2005 11:40 AM
Subject: Re: [twsocket] Is there a way to download a file in threads?


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 one file. Like I said, only guessing...

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: "Nicholas Sherlock" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Wednesday, April 13, 2005 2:46 AM
Subject: Re: [twsocket] Is there a way to download a file in threads?


Francois PIETTE wrote:
Some of You guys know Leechget and downloadmanager like that.
They have an option to download a file in threads.
Can you describe this feature because I don't know those programs.

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.

Cheers,
Nicholas Sherlock
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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 described simultaneous download. Each 
FTP component will
download the same file, using the ResumeAt function to start each component at 
a different point of
the file. When one component reach the starting point of another one, you abort 
the transfert of
that component (the file will be kept). When all have finished, you reassemble 
the parts with
standard file I/O. Not trivial but not too much difficult to achieve.
--
[EMAIL PROTECTED]
http://www.overbyte.be



-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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 disk. 
I did a BitTorrent client where it writes pieces randomly into the file and 
the whole application would lock up when it first starts writing to the end 
of the file because of this blocking.
As for how to retrieve pieces of the file, just do a REST to set your 
starting offset, and in your progress event or whatever you use, check if 
you have received enough data from that connection and close the data socket 
it if you have (you might receive slightly more than you wanted for that 
connection but who cares).

Dan
- Original Message - 
From: "Moacir Flávio Gonçalves" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Wednesday, April 13, 2005 11:40 AM
Subject: Re: [twsocket] Is there a way to download a file in threads?


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 
one file. Like I said, only guessing...

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: "Nicholas Sherlock" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Wednesday, April 13, 2005 2:46 AM
Subject: Re: [twsocket] Is there a way to download a file in threads?


Francois PIETTE wrote:
Some of You guys know Leechget and downloadmanager like that.
They have an option to download a file in threads.
Can you describe this feature because I don't know those programs.

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.

Cheers,
Nicholas Sherlock
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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 
one file. Like I said, only guessing...

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: "Nicholas Sherlock" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Wednesday, April 13, 2005 2:46 AM
Subject: Re: [twsocket] Is there a way to download a file in threads?


Francois PIETTE wrote:
Some of You guys know Leechget and downloadmanager like that.
They have an option to download a file in threads.
Can you describe this feature because I don't know those programs.

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.

Cheers,
Nicholas Sherlock
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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

2005-04-12 Thread Fastream Technologies
You can see an ICS example of multiple socket download FTP client here 
(beta, freeware, no ads): http://www.fastream.net/beta/NetFile.exe

Best Regards,
SZ
- Original Message - 
From: "Nicholas Sherlock" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Wednesday, April 13, 2005 8:46 AM
Subject: Re: [twsocket] Is there a way to download a file in threads?


Francois PIETTE wrote:
Some of You guys know Leechget and downloadmanager like that.
They have an option to download a file in threads.
Can you describe this feature because I don't know those programs.

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.

Cheers,
Nicholas Sherlock
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be 

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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

2005-04-12 Thread Nicholas Sherlock
Francois PIETTE wrote:
Some of You guys know Leechget and downloadmanager like that.
They have an option to download a file in threads.
   

Can you describe this feature because I don't know those programs.
 

 

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.

Cheers,
Nicholas Sherlock
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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

2005-04-12 Thread Francois PIETTE
> Some of You guys know Leechget and downloadmanager like that.
> They have an option to download a file in threads.

Can you describe this feature because I don't know those programs.

> Is it possible with FTPCLI to setup
> ranges to download a file in threads? When Yes, how?

If you mean downloading files in the background, there is nothing very
special to do with ICS: it automaticall work in the background as soon as
you use async functions (GetAsync instead of Get). No need to use
multithreading ! See FtpAsy demo program. To download several files in
parrallel, use one FTP client component per file to download. You can create
the components dynamically each time the user ask to download another file
and destroy the component once the download is complete. Or use a queue of
component.

--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be




-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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

2005-04-09 Thread Fastream Technologies
I used to do that with our FTP client. This approach requires many extra 
coding with critical sections and so on.. The best way that Francois 
convinced me is to do async coding on the client side and even on 
FTP/POP3/SMTP servers. The only shortcoming of ICS is the web server which 
has no official and/or optimized CGI/ISAPI component and by design async 
which is bad for a web server. That's why currently I am working on 
translating our web server to DXSock. DXSock also has SSL which we have been 
patiently waiting for from Francois for more than 2 years and 3 months.

Best Regards,
SZ
- Original Message - 
From: "Mice Cage" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Saturday, April 09, 2005 1:13 AM
Subject: [twsocket] Is there a way to download a file in threads?


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://www.gmx.net/de/go/freesms
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be 

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


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

2005-04-09 Thread Fredrik Bergström
Yes, Create the threads yourself and have one FTPCLI in each of them.

/Fredrik

Saturday, April 9, 2005, 12:13:12 AM, you wrote:

> 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?



--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[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://www.gmx.net/de/go/freesms

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be