OwlCore.Storage icon indicating copy to clipboard operation
OwlCore.Storage copied to clipboard

Implementation for accessing torrent

Open itsWindows11 opened this issue 1 year ago • 4 comments

Original discussion: https://discord.com/channels/372137812037730304/1255950330588434512/1255950330588434512 (thread)

For this transfer manager project, a torrent implementation is needed to compete with the likes of BitTorrent, Free Download Manager etc.

itsWindows11 avatar Jun 27 '24 20:06 itsWindows11

Is there a particular torrent library you had in mind which we could lean on / wrap around to simplify the storage implementation?

Arlodotexe avatar Jul 01 '24 15:07 Arlodotexe

MonoTorrent suffices I guess, haven't checked it out as it doesn't seem to have any documentation files I can quickly skim but it seems to support most file capabilities we would need.

No idea about write streams though, I usually used torrents for downloads.

itsWindows11 avatar Jul 01 '24 15:07 itsWindows11

I have vague recollection of someone in the community pointing out that MonoTorrent only supports writing a file to a disk path. After some digging, I found the discussion here, under the ByteStream Torrent Project from Luandersonn Apps.

Arlodotexe avatar Jul 03 '24 00:07 Arlodotexe

In lieu of a polished torrent library, we have the option of doing it ourselves. Normally I'd say this is unfeasible to build from scratch in a reasonable amount of time, but Seán O'Flynn has written a potentially invaluable, seemingly complete guide on how to build a bittorrent client from scratch in C#

https://www.seanjoflynn.com/research/bittorrent.html

Arlodotexe avatar Jul 11 '24 22:07 Arlodotexe