change chunk priority

das329717

Member
May 25, 2018
928
0
16
Hi all,

I am studying XMLRPC specs for rtorrent, and I don't see, if is possible to change priority for chunks. So my question is if it is possible, so which method I can use.

Thanks.
 

dsouvik215

Member
May 25, 2018
896
0
16
See
f.prioritize_first.enable
f.prioritize_first.disable
f.prioritize_last.enable
f.prioritize_last.disable
etc.
 

jith45

Member
May 25, 2018
960
0
16
thanks a lot, didn't know about that, I see we got there:

Index 329 String: 'f.prioritize_first'
Index 330 String: 'f.prioritize_first.disable'
Index 331 String: 'f.prioritize_first.enable'
Index 332 String: 'f.prioritize_last'
Index 333 String: 'f.prioritize_last.disable'
Index 334 String: 'f.prioritize_last.enable'
Index 335 String: 'f.priority'
Index 336 String: 'f.priority.set'
Index 337 String: 'f.range_first'
Index 338 String: 'f.range_second'
Index 340 String: 'f.set_priority'
Index 351 String: 'file.prioritize_toc'
Index 352 String: 'file.prioritize_toc.first'
Index 353 String: 'file.prioritize_toc.first.set'
Index 354 String: 'file.prioritize_toc.last'
Index 355 String: 'file.prioritize_toc.last.set'
Index 356 String: 'file.prioritize_toc.set'

I don't know how to set the priority (off to high) for chunks. What I want to do is just download first and last 64kb of file (chunk what I need) and ignore everything else. Is that possible without patching libtorrent ?

Thank you!
 

jith45

Member
May 25, 2018
960
0
16
What I want to do is just download first and last 64kb of file (chunk what I need) and ignore everything else
You can't do that. You may only say to rTorrent "I want load leading chunk first". Or "I want load trailing chunk first".
 

somus1735

Member
May 25, 2018
833
0
16
Hi, thanks for answer, I was afraid of this.

Now maybe a little off topic - exists some torrent client, which I can install on server, which supports downloading JUST first and last chunk of the file and ignoring everything else ?
 

dsouvik215

Member
May 25, 2018
896
0
16
exists some torrent client, which I can install on server, which supports downloading JUST first and last chunk of the file and ignoring everything else ?
Don't know. But i think - no. Reason is simple - if you use bittorrent, then you must seed. If you load just first and last chunk then you can't seed by normal way.
 

somus1735

Member
May 25, 2018
833
0
16
I bet you could patch rtorrent itself to do stuff like this. I've read a few blog posts about patching rtorrent to do strange stuff, though it's mostly beyond me, i would image it's possible for someone who understands c++
 

das329717

Member
May 25, 2018
928
0
16
I understand, thanks for answer, which makes sense. So it seems I have to hack the source code, it doesn't seems so hard.

Have a nice day!