FTP Server Programming

Is it possible to send data from various files using FTP into a single
file on the client machine? For example the user asks to download
BIG_File.dat, but the server grabs the data from small_file1.dat,
small_file2.dat and small_file3.dat and sends the data from those 3
files in succession?

Basically, is there a way to start an FTP transfer, continue to send data
packets and then stop/complete the FTP transfer?

I am assuming this is possible (I have seen file transfers where the size
of the file is unknown), but some clarification would be great!


Thank you,
Greg Smith
Software Architect
Bach-Simpson Corporation

Greg Smith <gsmith@bach-simpson.com> wrote:

Is it possible to send data from various files using FTP into a single
file on the client machine? For example the user asks to download
BIG_File.dat, but the server grabs the data from small_file1.dat,
small_file2.dat and small_file3.dat and sends the data from those 3
files in succession?

Is it possible? Yes.

Is it possible without custom-writing an ftpd? Maybe.

You could write a resource manager, that presented, say, “BIG_File.dat”,
and when ftpd read from BIG_File.dat, tracks how far through, and assembles
the contents by opening and reading small_file1.dat, small_file2.dat, etc,
in succession.

There might be another way, some “standard way”, that I don’t know of, too.

-David

David Gibbs
QNX Training Services
dagibbs@qnx.com

Thanks David!

By standard, I actually meant standard to the client (Web Browser). I
expected to write something custom on the QNX machine.

Greg Smith

David Gibbs wrote:

Greg Smith <> gsmith@bach-simpson.com> > wrote:

Is it possible to send data from various files using FTP into a single
file on the client machine? For example the user asks to download
BIG_File.dat, but the server grabs the data from small_file1.dat,
small_file2.dat and small_file3.dat and sends the data from those 3
files in succession?

Is it possible? Yes.

Is it possible without custom-writing an ftpd? Maybe.

You could write a resource manager, that presented, say, “BIG_File.dat”,
and when ftpd read from BIG_File.dat, tracks how far through, and assembles
the contents by opening and reading small_file1.dat, small_file2.dat, etc,
in succession.

There might be another way, some “standard way”, that I don’t know of, too.

-David

David Gibbs
QNX Training Services
dagibbs@qnx.com