From 2e745b617d92802fabf5881b452215d120f2e748 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Tue, 17 Jan 2023 22:25:18 +0100 Subject: [PATCH] update readme --- README.md | 5 +++++ src/states/sha1.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5c09760..c9e60b5 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ this will print this tools tox_id and the generated 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) +to increase the amount of parallel chunk down/up loads, you can increase the value with the -I and -O option. the default for -I is 32 and for -O 16, which are relatively low numbers, which in practice can get you up to ~400KiB/s. ## Usage @@ -56,5 +57,9 @@ $ tox_ngc_ft1_tool --ft_sending_resend_without_ack_after --ft_sending_give_up_after --ft_packet_window_size + + transfer logic: + -I + -O ``` diff --git a/src/states/sha1.cpp b/src/states/sha1.cpp index d4c1754..b2fc323 100644 --- a/src/states/sha1.cpp +++ b/src/states/sha1.cpp @@ -269,7 +269,7 @@ void SHA1::onFT1SendDataSHA1Info(uint32_t group_number, uint32_t peer_number, ui // this transfer is "done" (ft still could have to retransfer) for (auto it = _transfers_requested_info.cbegin(); it != _transfers_requested_info.cend(); it++) { if (std::get<0>(*it) == group_number && std::get<1>(*it) == peer_number && std::get<2>(*it) == transfer_id) { - std::cout << "SHA1 info tansfer finished " << std::get<0>(*it) << ":" << std::get<1>(*it) << "." << std::get<2>(*it) << "\n"; + std::cout << "SHA1 info tansfer finished " << std::get<0>(*it) << ":" << std::get<1>(*it) << "." << int(std::get<2>(*it)) << "\n"; _transfers_requested_info.erase(it); break; }