6 #include "measurementtask.h"
10 InfoTask(
const std::string &
label,
const std::string &ticket_string,
11 const std::string &hash_key,
const HttpHost &server,
12 unsigned int no_conn = 1,
unsigned int max_conn = 3,
13 double duration = 300.0) :
15 no_conn, max_conn, duration),
24 const std::string &msg)
override;
28 void setUploadDeadline(
double t) {
30 upload_deadline =
elapsed() + t;
36 void setInfoDeadline(
double t) {
44 double upload_deadline = -1.0;
45 double info_deadline = -1.0;
HTTP/1.1 client protocol.
Definition: httpclientconnection.h:39
Definition: httpconnection.h:11
The host name and port number of a HTTP host.
Definition: httphost.h:17
bool wsTextMessage(HttpConnection *, const std::string &msg) override
Incoming websocket text message. Return false to kill connection.
Definition: infotask.cpp:10
void newRequest(HttpClientConnection *) override
Initiate next request, or ignore to close connection.
Definition: infotask.cpp:6
double timerEvent() override
Definition: infotask.cpp:17
bool requestComplete(HttpClientConnection *) override
Called when response has been fully read.
Definition: infotask.h:20
std::string label() const
Return the object's log label.
Definition: logger.h:251
Definition: measurementtask.h:9
double elapsed() const
Return number of seconds since the task was started.
Definition: task.h:234