]> infiniteadaptability.org Git - seeder/commitdiff
updated using git-ex
authoralex <[email protected]>
Wed, 8 Sep 2021 06:17:58 +0000 (23:17 -0700)
committeralex <[email protected]>
Wed, 8 Sep 2021 06:17:58 +0000 (23:17 -0700)
todo

diff --git a/todo b/todo
index 58ab576727994977cee4892f27467b7364619152..90cb47d6bbf8b2c6636ee8f3662d35a9e13cb468 100644 (file)
--- a/todo
+++ b/todo
@@ -55,23 +55,18 @@ To Do:
 Stage 0:
 *basic structure
 *update logging
--global variables
-       *session
-       *torrents
-       *options
-       -peers
-       -add queue
-               -no, run each directory in torrents through nftw
+*global variables
+-implement generic hashmap with libsodium
 -setup watches
        *add option to watch directories
        *add option for worker_threads [default=ncores]
-       -add default watch directories
+       *add default watch directories
        -foreach watch directory
                -walk each tree
                -add each file to add queue
-                       -check for duplicates
-                               -hashmap?
-               -add pointer to struct file to torrent
+                       -add queue = hashmap to allow for duplicate checking
+               -add pointer to struct file to torrent->files hashmap + file_tree
+                       -2 ways to access, file_tree must be sorted, hashmap allows for o(1) reads
        -find all files in all directories
                -functions for traversing directory
                        -man scandir
@@ -79,10 +74,13 @@ Stage 0:
                                -https://stackoverflow.com/questions/66936692/how-to-use-scandir-in-c-to-list-sorted-subdirectories-recursively
                -save to struct with file size
                -multi-threaded add, spawn opt.worker_threads # of threads
+               -figure out what hashing needs to be done
                -add to torrent(s)
-       -sort in torrent struct after all done
+       -sort file_tree in torrent struct after all done
+               -create tree_sort method
        -on modification
-               -update torrents?
+               -update files
+               -call tree_sort()
                -build+replace existing torrent
 -create torrent
        -build merkle tree
@@ -104,6 +102,7 @@ Stage 1:
 -tcp+udp functionality
 -create/add torrents
 -create feeds
+       -meta files, torrent names
        -bring in feeds from old project
 
 Stage 2: