BitTorrent file like functionality with magnet links

One of the competitors of DC is BitTorrent. With BT, one is able to supply torrent files that contain links to multiple files or sets (among other things). (Yeah, over simplification perhaps.)

As torrent files contain knowledge about multiple files, people have been discussing the possiblity to do similar things in DC, and especially with magnet links. However, there is a huge problem; magnet links point to content, rather than “files”. That is, you cannot say “this magnet link point to file a, file b and file c”, but instead you say “this magnet link point to content a”. However, “content a” is not specific to one file, but it can also mean an entire set of files. E.g., the entire selection of vacation photos or the entire Ubuntu source code collection. The “only” problem with that is that clients need to be able to know how such collections’ hashes are calculated (by combination of hashes or whatever that is the protocol).

One might of course also take the BT approach; have an intermediate storage facility (magnet files) that contain a multitude of content pointers (magnet links). (And/Or whatever the storage facility shall have in terms of features.)

2 Responses to BitTorrent file like functionality with magnet links

  1. zokier says:

    I’m doing a web-based search system for an intraweb hub we got here and found magnet-uri’s bit clumsy to use. So I began to think a ‘better’ way to point to files in DC-network. The scheme I got so far would be in the format of:

    dcfile://user@hub:port/path/to/file?tth=xxx&size=yyy

    Relatively easy to parse, and identifies file extremly specifically. And its in more traditional form than magnet-uri’s.

    Ofcourse several of these url’s could be put into a file, maybe separated with a newline if necessary.

    I could try to make a rudimentary parser to dc++, would you approve patch? I’m not that experienced c++ programmer…

  2. poy says:

    zokier, what you are talking about already (almost) exists; see WinUtil::parseDchubUrl in win32/WinUtil.cpp.
    i’m not sure it uses hashes, however…

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: