From 83dcf2af82e38fc5522b6151e67fc1dba02b90c0 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Tue, 17 Jan 2023 17:52:27 +0100 Subject: [PATCH] update ft and tweaks --- README.md | 4 ++-- external/tox_ngc_ft1/tox_ngc_ft1 | 2 +- src/states/sha1.hpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 30b2dfe..5c09760 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,12 @@ currently on prototype FT1 ## Example ### sender (seeder) -$ tox_ngc_ft1_tool -F sender.tox -G -a sha1_info -f file_to_transfer +`$ tox_ngc_ft1_tool -F sender.tox -G -a sha1_info -f file_to_transfer` this will print this tools tox_id and the generated info_hash ### receivers (leechers) -$ tox_ngc_ft1_tool -F sender.tox -G -a sha1_info -D +`$ tox_ngc_ft1_tool -F sender.tox -G -a sha1_info -D ` this will first download the info using the info_hash and then all the file chunks listed in the info while simultaneously resharing allready downloaded chunks and info (swarming) diff --git a/external/tox_ngc_ft1/tox_ngc_ft1 b/external/tox_ngc_ft1/tox_ngc_ft1 index ae9e272..aa9c7c4 160000 --- a/external/tox_ngc_ft1/tox_ngc_ft1 +++ b/external/tox_ngc_ft1/tox_ngc_ft1 @@ -1 +1 @@ -Subproject commit ae9e2729d20ff5134e718a3603459b218aebf077 +Subproject commit aa9c7c44bab594cd03b0ad5af70fd5c39a34cf6b diff --git a/src/states/sha1.hpp b/src/states/sha1.hpp index af957f0..19413f6 100644 --- a/src/states/sha1.hpp +++ b/src/states/sha1.hpp @@ -69,8 +69,8 @@ struct SHA1 final : public StateI { // chunk_index -> time since request std::map _chunks_requested; - const size_t _max_concurrent_out {4}; - const size_t _max_concurrent_in {16}; + const size_t _max_concurrent_out {16}; + const size_t _max_concurrent_in {32}; std::minstd_rand _rng {1337}; std::uniform_int_distribution _distrib;