Pyrogenesis trunk
|
#include "precompiled.h"
#include "UserReport.h"
#include "lib/timer.h"
#include "lib/utf8.h"
#include "lib/external_libraries/curl.h"
#include "lib/external_libraries/zlib.h"
#include "lib/file/archive/stream.h"
#include "lib/os_path.h"
#include "lib/sysdep/sysdep.h"
#include "ps/ConfigDB.h"
#include "ps/Filesystem.h"
#include "ps/Profiler2.h"
#include "ps/Pyrogenesis.h"
#include "ps/Threading.h"
#include <condition_variable>
#include <deque>
#include <fstream>
#include <mutex>
#include <string>
#include <thread>
Classes | |
struct | CUserReport |
class | CUserReporterWorker |
Macros | |
#define | DEBUG_UPLOADS 0 |
Variables | |
static const int | REPORTER_VERSION = 1 |
Version number stored in config file when the user agrees to the reporting. More... | |
static const double | TIMER_CHECK_INTERVAL = 10.0 |
Time interval (seconds) at which the worker thread will check its reconnection timers. More... | |
static const double | RECONNECT_INVERVAL = 60.0 |
Seconds we should wait before reconnecting to the server after a failure. More... | |
CUserReporter | g_UserReporter |
#define DEBUG_UPLOADS 0 |
CUserReporter g_UserReporter |
|
static |
Seconds we should wait before reconnecting to the server after a failure.
|
static |
Version number stored in config file when the user agrees to the reporting.
Reporting will be disabled if the config value is missing or is less than this value. If we start reporting a lot more data, we should increase this value and get the user to re-confirm.
|
static |
Time interval (seconds) at which the worker thread will check its reconnection timers.
(This should be relatively high so the thread doesn't waste much time continually waking up.)