update ft and tweaks

This commit is contained in:
Green Sky 2023-01-17 17:52:27 +01:00
parent 5d4108c3e6
commit 83dcf2af82
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

View File

@ -4,12 +4,12 @@ currently on prototype FT1
## Example
### 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
### 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
while simultaneously resharing allready downloaded chunks and info (swarming)

@ -1 +1 @@
Subproject commit ae9e2729d20ff5134e718a3603459b218aebf077
Subproject commit aa9c7c44bab594cd03b0ad5af70fd5c39a34cf6b

View File

@ -69,8 +69,8 @@ struct SHA1 final : public StateI {
// chunk_index -> time since request
std::map<size_t, float> _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<size_t> _distrib;