From b379f21cb3d76e16240e28773b2ce30f111dad47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ben=20Gr=C3=A4f?= Date: Tue, 12 Jun 2018 09:15:04 +0200 Subject: [PATCH] Fix connection issues and add enhancement to the Dashboard (#130) * Fix connection errors when doing DNS lookup * Fix connection handling when an error occurs * Add remote logging feature * Add algo variant to dashboard --- CMakeLists.txt | 1 + index.html | 87 +++++++++++++++++++++++++++++++----- src/App.cpp | 6 ++- src/Options.cpp | 32 ++++++++++++-- src/Options.h | 4 ++ src/api/NetworkState.h | 2 + src/cc/CCClient.cpp | 29 ++++++++---- src/cc/CCClient.h | 14 +++--- src/cc/ClientStatus.cpp | 32 ++++++++++++++ src/cc/ClientStatus.h | 8 ++++ src/config.json | 2 + src/default_config.json | 2 + src/log/FileLog.cpp | 5 ++- src/log/RemoteLog.cpp | 93 +++++++++++++++++++++++++++++++++++++++ src/log/RemoteLog.h | 48 ++++++++++++++++++++ src/net/BoostConnection.h | 58 ++++++++++++++---------- src/net/Connection.cpp | 4 +- src/net/Connection.h | 7 +-- src/net/Network.cpp | 1 + src/version.h | 4 +- 20 files changed, 377 insertions(+), 62 deletions(-) create mode 100644 src/log/RemoteLog.cpp create mode 100644 src/log/RemoteLog.h diff --git a/CMakeLists.txt b/CMakeLists.txt index ffcbc8f4..4686286a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,6 +57,7 @@ set(SOURCES_COMMON src/Options.cpp src/log/ConsoleLog.cpp src/log/FileLog.cpp + src/log/RemoteLog.cpp src/log/Log.cpp src/Platform.cpp src/Cpu.cpp diff --git a/index.html b/index.html index 5a999dfb..52eb308d 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,7 @@ - +