9 #include "../json11/json11.hpp"
10 #include "../framework/task.h"
11 #include "../http/httphost.h"
19 const std::map<std::string, std::string> &report_data);
20 double start()
override;
23 void uploadComplete();
24 void doSaveReport(
const json11::Json &args = json11::Json::object());
25 void addToReport(
const std::string &attr,
const std::string &val);
30 std::map<std::string, std::string> report;
32 double upload_duration, download_duration;
33 std::string server_upload_speed, local_upload_speed;
35 bool report_sent_to_server =
false;
36 bool websocket_works =
false;
40 bool local_latency =
false;
42 double speed_limit = 0.0;
43 unsigned int initial_no_dconn = 10, initial_no_uconn = 4;
44 unsigned int max_no_dconn = 100, max_no_uconn = 100;
46 uint64_t bytesSentAtStart;
47 uint64_t bytesRecAtStart;
The host name and port number of a HTTP host.
Definition: httphost.h:17
Definition: measurementagent.h:17
Definition: speedtest.h:16
void taskMessage(Task *task) override
Definition: speedtest.cpp:66
void taskFinished(Task *task) override
Definition: speedtest.cpp:130
double start() override
Definition: speedtest.cpp:60
The purpose of a task is to manage socket connections, and/or to execute timers.
Definition: task.h:39