You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the following issue, or rather just a request for someone to point me into the right direction.
I have a content repository that is read only from my side, and which is represented by the following interfaces.
Each content file is represented by a sequential collection of blocks all identified by their SHA256 hash.
The blocks are each 1 MB in size ( except the last one of a given content item )
Now i would like to distribute those content files via bittorrent, using monotorrent of course.
Backward compatiblity is no concern, as all clients are under my control. So the V2 protocol can be used,
In my mind the structure i have maps perfectly to torrents and their piece structure, and since i already have the SHA256 hashes
this would also work quite well with the V2 protocol .
However currently i am struggling on how to plug my system into montorrent e.g creating a torrent file from a collection of such content items...
All the samples and interfaces like ITorrentFileSource etc assume that the files reside on disk, and that piece are not already defined.
Is there a way to plug my system into the torrent creation pipeline ? Where should i start to look in terms of interfaces ?
The text was updated successfully, but these errors were encountered:
After some more investigation it seems that i would have to reimplement TorrentCreator
However a lot of the types needed to do this are internal to monotorrent... i would rather like to avoid doing a full source fork ...
Any ideas ?
I wrote everything from scratch so its now not related to monotorrent anymore ( our own Beencode writer and of course the Torrent V2 creation ) .. works like a charm... however it was very difficult as the TorrentV2 spec is very ambiguous and left us with a lot of trial and error to do. Especially if you don't have the original file but only its piece hashes ( tree padding logic and the 16 kb page hashes )
Hi !
I have the following issue, or rather just a request for someone to point me into the right direction.
I have a content repository that is read only from my side, and which is represented by the following interfaces.
Each content file is represented by a sequential collection of blocks all identified by their SHA256 hash.
The blocks are each 1 MB in size ( except the last one of a given content item )
Now i would like to distribute those content files via bittorrent, using monotorrent of course.
Backward compatiblity is no concern, as all clients are under my control. So the V2 protocol can be used,
In my mind the structure i have maps perfectly to torrents and their piece structure, and since i already have the SHA256 hashes
this would also work quite well with the V2 protocol .
However currently i am struggling on how to plug my system into montorrent e.g creating a torrent file from a collection of such content items...
All the samples and interfaces like ITorrentFileSource etc assume that the files reside on disk, and that piece are not already defined.
Is there a way to plug my system into the torrent creation pipeline ? Where should i start to look in terms of interfaces ?
The text was updated successfully, but these errors were encountered: