Things are pretty broken now

This commit is contained in:
Igor Katson 2021-06-26 16:43:36 +01:00
parent 6a7f8a4d1a
commit d546dfd1e6
7 changed files with 364 additions and 35 deletions

13
TODO.md Normal file
View file

@ -0,0 +1,13 @@
- [ ] Selective file downloading (mostly done)
- [ ] Seeking optimization
- If a file is not needed, no need to check its hash
- [ ] Proper counting of how much is left, and how much is downloaded
- [ ] Refactor "needed pieces" into a bitfield
- [ ] Send bitfield at the start if I have something
- [ ] use the "update_hash" function in piece checking
- [ ] signaling when file is done
someday:
- [ ] cancellation