6 #include "progresstask.h"
11 unsigned int no_conn = 10,
unsigned int max_conn = 100,
12 double duration = 10.0,
double max_time = 25.0,
14 double start()
override;
20 const std::string &msg)
override;
22 const std::string &msg)
override;
24 conn->streamWsResponse();
30 double tick_duration_s;
31 double dynamic_conn_limit;
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
Definition: progresstask.h:5
Definition: wsdownloadtask.h:8
bool requestComplete(HttpClientConnection *) override
Called when response has been fully read.
Definition: wsdownloadtask.cpp:71
bool wsBinMessage(HttpConnection *conn, const std::string &msg) override
Incoming websocket binary message. Return false to kill connection.
Definition: wsdownloadtask.cpp:79
double start() override
Definition: wsdownloadtask.cpp:16
double timerEvent() override
Definition: wsdownloadtask.cpp:22
void newRequest(HttpClientConnection *) override
Initiate next request, or ignore to close connection.
Definition: wsdownloadtask.cpp:48
bool wsBinData(HttpConnection *conn, const char *, size_t count) override
Incoming partial websocket binary message.
Definition: wsdownloadtask.cpp:86
bool websocketUpgrade(HttpClientConnection *) override
Called after succesful websocket upgrade.
Definition: wsdownloadtask.cpp:75
bool wsTextMessage(HttpConnection *conn, const std::string &msg) override
Incoming websocket text message. Return false to kill connection.
Definition: wsdownloadtask.cpp:93
bool wsBinHeader(HttpConnection *conn, size_t) override
Called when headers of a binary message are read.
Definition: wsdownloadtask.h:23