From: alex Date: Sun, 5 Dec 2021 20:33:04 +0000 (-0800) Subject: updated using git-extra X-Git-Url: http://git.infiniteadaptability.org/?a=commitdiff_plain;h=3077ef9c30a9b60e057fc996625aa8f5383647ea;p=seeder updated using git-extra --- diff --git a/todo b/todo index 8daff2c..580c7e9 100644 --- a/todo +++ b/todo @@ -52,15 +52,13 @@ Stage 0: *rework hashing/piece layers data organization *verify correctness of file_hash w/ bep0052.py script *rework tree +*refactor torrent +-convert file sizes to uint64_t - HERE -torrent_file() *torrent_file_info *rework torrent_file *rework tree *tree_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 @@ -70,12 +68,9 @@ Stage 0: -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() +-rework bencode + -rethink strategy for when out of available buffer space -test -bencode -check that snprintf doesn't have weird behavior w/ \n and \0