From de247c9e91aa13438b0da7dfe8dd21a92443b1f8 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Fri, 20 Jan 2023 00:00:57 +0100 Subject: [PATCH] actually set group name --- README.md | 2 +- src/tox_client.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c9e60b5..5dca521 100644 --- a/README.md +++ b/README.md @@ -13,7 +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. +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 ~700KiB/s. ## Usage diff --git a/src/tox_client.cpp b/src/tox_client.cpp index 327aa3c..99393cc 100644 --- a/src/tox_client.cpp +++ b/src/tox_client.cpp @@ -329,6 +329,7 @@ void ToxClient::onToxGroupPeerExit(uint32_t group_number, uint32_t peer_id, Tox_ void ToxClient::onToxGroupSelfJoin(uint32_t group_number) { std::cout << "TCL group self join " << group_number << "\n"; + tox_group_self_set_name(_tox, group_number, reinterpret_cast(_self_name.data()), _self_name.size(), nullptr); // ??? // can be triggered after other peers already joined o.o _tox_profile_dirty = true;