initial
This commit is contained in:
commit
ab9a0bd4e2
183 changed files with 20701 additions and 0 deletions
23
src/examples/020_cliclient/webserver.h
Normal file
23
src/examples/020_cliclient/webserver.h
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#pragma once
|
||||
|
||||
#include <http/webservertask.h>
|
||||
|
||||
class BridgeTask;
|
||||
|
||||
class WebServer : public WebServerTask {
|
||||
public:
|
||||
WebServer(const std::string &cfg) :
|
||||
WebServerTask("WebServer", cfg) {
|
||||
}
|
||||
|
||||
HttpState newGetRequest(HttpServerConnection *,
|
||||
const std::string &uri) override;
|
||||
|
||||
void handleExecution(Task *sender, const std::string &message) override;
|
||||
void taskFinished(Task *task) override;
|
||||
private:
|
||||
unsigned long tot_no_requests = 0;
|
||||
|
||||
// We will only talk to one client.
|
||||
BridgeTask *the_bridge = nullptr;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue