update readme

This commit is contained in:
Green Sky 2023-01-17 22:25:18 +01:00
parent 2f1bb3fac2
commit 2e745b617d
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View File

@ -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 <max_incoming_transfers>
-O <max_outgoing_transfers>
```

View File

@ -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;
}