update ft and tweaks

This commit is contained in:
2023-01-17 17:52:27 +01:00
parent 5d4108c3e6
commit 83dcf2af82
3 changed files with 5 additions and 5 deletions

View File

@ -4,12 +4,12 @@ currently on prototype FT1
## Example ## Example
### sender (seeder) ### sender (seeder)
$ tox_ngc_ft1_tool -F sender.tox -G <ngc_chat_id> -a sha1_info -f file_to_transfer `$ tox_ngc_ft1_tool -F sender.tox -G <ngc_chat_id> -a sha1_info -f file_to_transfer`
this will print this tools tox_id and the generated info_hash this will print this tools tox_id and the generated info_hash
### receivers (leechers) ### receivers (leechers)
$ tox_ngc_ft1_tool -F sender.tox -G <ngc_chat_id> -a sha1_info -D <info_hash> `$ tox_ngc_ft1_tool -F sender.tox -G <ngc_chat_id> -a sha1_info -D <info_hash>`
this will first download the info using the info_hash and then all the file chunks listed in the info 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) while simultaneously resharing allready downloaded chunks and info (swarming)

View File

@ -69,8 +69,8 @@ struct SHA1 final : public StateI {
// chunk_index -> time since request // chunk_index -> time since request
std::map<size_t, float> _chunks_requested; std::map<size_t, float> _chunks_requested;
const size_t _max_concurrent_out {4}; const size_t _max_concurrent_out {16};
const size_t _max_concurrent_in {16}; const size_t _max_concurrent_in {32};
std::minstd_rand _rng {1337}; std::minstd_rand _rng {1337};
std::uniform_int_distribution<size_t> _distrib; std::uniform_int_distribution<size_t> _distrib;