diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ad11bc..c0cf214 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,5 @@ +#note: experimental + cmake_minimum_required(VERSION 3.7) project(speederv2) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) diff --git a/connection.h b/connection.h index 615698b..0b7f8ac 100644 --- a/connection.h +++ b/connection.h @@ -188,6 +188,9 @@ struct stat_t { inner_stat_t normal_to_fec; inner_stat_t fec_to_normal; stat_t() { + clear(); + } + void clear(){ memset(this, 0, sizeof(stat_t)); } void report_as_client() {