From cd6141ee00f60ce272f5090260d202570e6ae925 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Tue, 31 Jan 2023 02:02:01 +0100 Subject: [PATCH] updated ft with experimental cca --- external/tox_ngc_ft1/CMakeLists.txt | 3 +++ external/tox_ngc_ft1/tox_ngc_ft1 | 2 +- src/states/sha1.cpp | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/external/tox_ngc_ft1/CMakeLists.txt b/external/tox_ngc_ft1/CMakeLists.txt index 8c5dd65..5ecf62a 100644 --- a/external/tox_ngc_ft1/CMakeLists.txt +++ b/external/tox_ngc_ft1/CMakeLists.txt @@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 3.9 FATAL_ERROR) add_library(tox_ngc_ft1 STATIC ./tox_ngc_ft1/ngc_ft1.h ./tox_ngc_ft1/ngc_ft1.cpp + + ./tox_ngc_ft1/ledbat.hpp + ./tox_ngc_ft1/ledbat.cpp ) target_include_directories(tox_ngc_ft1 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/tox_ngc_ft1") diff --git a/external/tox_ngc_ft1/tox_ngc_ft1 b/external/tox_ngc_ft1/tox_ngc_ft1 index a7b5c31..e1b5dd2 160000 --- a/external/tox_ngc_ft1/tox_ngc_ft1 +++ b/external/tox_ngc_ft1/tox_ngc_ft1 @@ -1 +1 @@ -Subproject commit a7b5c3136958f12fbef747c5d2b9a45ae3fa0b4b +Subproject commit e1b5dd20804503668572edf15ef1b2db2b1847b3 diff --git a/src/states/sha1.cpp b/src/states/sha1.cpp index a9549cb..d12f94d 100644 --- a/src/states/sha1.cpp +++ b/src/states/sha1.cpp @@ -32,7 +32,7 @@ SHA1::SHA1( _udp_only = cl.request_only_from_udp_peer; _max_concurrent_in = cl.max_incoming_transfers; - _max_concurrent_out = cl.max_incoming_transfers; + _max_concurrent_out = cl.max_outgoing_transfers; // build lookup table for (size_t i = _sha1_info.chunks.size(); i > 0; i--) {