9 #include <microhttpd.h>
13 #include "histogram_getter.h"
15 #define HTTP_PORT 8000
16 #define ADDR_HIST2DImage "hst2im"
17 #define ADDR_HIST2DPage "hst2pg"
18 #define ADDR_HIST1DImage "hst1im"
19 #define ADDR_HIST1DPage "hst1pg"
96 int handle_request(
void *cls,
struct MHD_Connection *connection,
const char *address,
97 const char *
method,
const char *version,
const char *upload_data,
98 size_t *upload_data_size,
void **con_cls);
100 const char *
method,
const char *version,
const char *upload_data,
101 size_t *upload_data_size,
void **con_cls);
req_histogram1DImage(MHD_Connection *connection, const char *address, httpServer &server)
struct MHD_Daemon * _daemon
virtual void createResponseBuffer()
virtual void createResponseBuffer()
static int handle_request_callback(void *cls, struct MHD_Connection *connection, const char *address, const char *method, const char *version, const char *upload_data, size_t *upload_data_size, void **con_cls)
httpServer(cass::HistogramGetter &histogram_getter)
MHD_Connection * _connection
cass::HistogramGetter & _histogram_getter
requestType(MHD_Connection *connection, const char *address, httpServer &server)
req_histogram2DImage(MHD_Connection *connection, const char *address, httpServer &server)
virtual void createResponseBuffer()=0
requestType * parseAddress(const char *address, MHD_Connection *connection)
req_overviewPage(MHD_Connection *connection, const char *address, httpServer &server)
int handle_request(void *cls, struct MHD_Connection *connection, const char *address, const char *method, const char *version, const char *upload_data, size_t *upload_data_size, void **con_cls)
req_histogram1DPage(MHD_Connection *connection, const char *address, httpServer &server)
virtual void createResponseBuffer()
cass::HistogramGetter & histogram_getter()
req_histogram2DPage(MHD_Connection *connection, const char *address, httpServer &server)
virtual void createResponseBuffer()
std::string _responseBuffer
virtual void createResponseBuffer()