make max transfers configurable

This commit is contained in:
2023-01-17 20:52:03 +01:00
parent 92dcc81731
commit 2f1bb3fac2
8 changed files with 27 additions and 10 deletions

View File

@ -70,9 +70,12 @@ struct CommandLine {
// ---- TODO ----
// advaced dl:
// -I max_incoming_transfers (default 16)
// -O max_outgoing_transfers (default 4)
// -I max_incoming_transfers
size_t max_incoming_transfers {32};
// -O max_outgoing_transfers
size_t max_outgoing_transfers {16};
// -u request chunks only from UDP-direct peers
bool request_only_from_udp_peer {false};
CommandLine(int argc, char** argv);