[jdev] Re: Multiple/parallel file transfers
Anthony Ortiz
anthonypaulo at gmail.com
Fri Mar 25 21:09:29 CST 2005
Hmmm... I just looked through jep-0105 and it looks perfect to me. I
can see why they think it's overkill, but they're thinking along the
wrong lines. JEP 0105 gives you everything you need to transfer 1 or
more files in batch. Not only that but it also gives you the ability
to specify a hierarchy of files (ie. DOS directory structure.) Those
complaining about overkill shouldn't be complaining at all... rather,
they should use what they need and ignore the rest. After all, from
what I see, all you need to do to send a simple batch of multiple
files would be the following :
<tree
xmlns='http://jabber.org/profile/si/profile/tree-transfer'
numfiles='9'
size='80500'>
<directory name='cd_collection'>
<file sid='ft2' name='song1.mp3'/>
<file sid='ft3' name='song2.mp3'/>
<file sid='ft4' name='song3.mp3'/>
<file sid='ft5' name='song4.mp3'/>
</directory>
</tree>
Upon receiving this, the jabber client would then suggest (to the
recipient) saving it in a directory called "cd_collection", and the
recipient can choose to do so or save it to another location of their
own choosing, similair to the way winzip works. I don't see any
overkill in this at all... the tree tag is there in order to hold the
number of files and total size, file tag is there to hold the sid and
file name. The only thing that could be considered "overkill" (to
those who don't care to implement it) would be the directory tag, but
the recipient can choose to ignore this easily, so I really don't see
the issue. I see that the status of this JEP is now deferred... does
this mean multiple file xfer support is now dead?? I for one would
like to see this JEP resurrected.... calling it overkill would be like
calling DOS overkill; sure, DOS has directory support *if* you wish to
use it. If not, don't use it!!
Or maybe I'm just failing to see the overkill, so if one of the
naysayers could explain to me why it's overkill I would appreciate it.
:D
cheers!!
Anthony
On Fri, 25 Mar 2005 17:50:52 -0600, Peter Saint-Andre
<stpeter at jabber.org> wrote:
> On Fri, Mar 25, 2005 at 06:27:46PM -0500, Anthony Ortiz wrote:
> > I've implemented file xfer support in my client and have tested it
> > against both Psi and Exodus extensively, transferring multiple files
> > at the same time both ways and I can confirm that it works. However,
> > it is (as you said) one stream per xfer... I think what George wanted
> > was a method where one stream could send multiple files in batch
> > rather than sending/receiving them as individual downloads.
> >
> > Is there a reason why multiple file xfer's are not in the jabber
> > protocol yet or if it was, why it was deferred??
>
> There's the "tree transfer" JEP:
>
> http://www.jabber.org/jeps/jep-0105.html
>
> Some developers have told me that's overkill, though, since you may
> simply want to transfer multiple files rather than an entire tree.
>
> /psa
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mail.jabber.org/mailman/listinfo/jdev
>
More information about the JDev
mailing list