[Kget] transfer.h
Felix Berger
bflat1 at gmx.net
Fri Feb 25 18:24:58 CET 2005
On Friday 25 February 2005 16:16, Dario Massarin wrote:
> Yes. Consider it to be void in the new Transfer implementation.
Ok. Bittorrent transfers work. There are still cleanups I'll have to do, but
they mostly depend on the transfer interface, so I'll wait until that is
done.
One thing that might be special for the bittorrent plugin: Since a torrent
file can contain many files it makes more sense to let the user specify a
directory where to store it and not a filename for the torrent file.
Another point is the saving the transfers in the xml document: My current
implementation stores the content of the torrentfile in the xml file.
Although this might not be wanted in the future, I noticed that it would be
better if every transfer would get an extra xml node as argument to its
read/write methods where it can store its contents instead of the root node
of the document. Thus we can easily create subnodes as follows:
<Transfer Dest="file:///home/squig/New%20Folder/New%20Folder/lifeform-projec
t-archives-vol-1.torrent" TotalSize="339732996" Priority="3" Percent="2" Pro
cessedSize="7995392" Source="http://www.legaltorrents.com/bit/lifeform-proje
ct-archives-vol-1.torrent" Group="None" Status="1" />
<bencode>
--bencode goes here
</bencode>
</Transfer>
</TransferList>
BTW we need to save the plugin that is responsible for the transfer somewhere
as well.
Regards,
Felix
--
Try Debian GNU/Linux!
http://www.felix.beldesign.de/
More information about the Kget
mailing list