From 91020d73d0a375ef7fb760c23bc105eef982f429 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 4 Dec 2021 16:39:56 -0800 Subject: [PATCH] updated using git-extra --- todo | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/todo b/todo index d45b81b..8daff2c 100644 --- a/todo +++ b/todo @@ -57,22 +57,36 @@ Stage 0: *rework torrent_file *rework tree *tree_bencode - -consider reworking bencode + -rework bencode -snprintf return # of bytes needed to fill completely + -move to memcpy instead of snprintf (necessary because of binary data) + -rethink strategy for when out of available buffer space -torrent_bencode_piece_layers -need to sort (hash as key, file->piece_layers as value) -consider adding piece layer hashmap to torrent struct + -add pieces field to session struct + -create piece struct + -pointer to file + -reference to position of piece in file + -void* for data + -filled jit, cached -convert file sizes to uint64_t +-refactor torrent + -split into multiple files + -add, init, free, etc. + -gonna need remove eventually +-torrent_magnet() -test -bencode -check that snprintf doesn't have weird behavior w/ \n and \0 -torrent -torrent_file_info + -torrent_file_path -expand add tests + -check results in hashmaps, trees, etc. -file -add sort/order tree files test -integration test setup --torrent_magnet() -feed -pull from previous iteration -create feeds @@ -86,6 +100,10 @@ Stage 0: -rebuild torrents+feeds -networking -port option + -tcp vs. udp differences? + -peer protocol + -piece selection + -throttling algorithms -signal handler -graceful shutdown -watch threads -- 2.30.2