CFEL - ASG Software Suite
2.5.0
CASS
|
#include <httpserver.h>
Public Member Functions | |
httpServer (cass::HistogramGetter &histogram_getter) | |
~httpServer () | |
void | start () |
void | stop () |
cass::HistogramGetter & | histogram_getter () |
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) |
requestType * | parseAddress (const char *address, MHD_Connection *connection) |
Static Public Member Functions | |
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) |
Private Attributes | |
struct MHD_Daemon * | _daemon |
cass::HistogramGetter & | _histogram_getter |
Definition at line 83 of file httpserver.h.
|
inline |
Definition at line 86 of file httpserver.h.
|
inline |
Definition at line 87 of file httpserver.h.
References stop().
int httpServer::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 | ||
) |
Definition at line 96 of file httpserver.cpp.
References parseAddress(), and requestType::sendResponse().
Referenced by handle_request_callback().
|
static |
|
inline |
Definition at line 91 of file httpserver.h.
References _histogram_getter.
Referenced by req_histogram2DImage::createResponseBuffer().
requestType * httpServer::parseAddress | ( | const char * | address, |
MHD_Connection * | connection | ||
) |
Definition at line 114 of file httpserver.cpp.
References ADDR_HIST1DImage, ADDR_HIST1DPage, ADDR_HIST2DImage, and ADDR_HIST2DPage.
Referenced by handle_request().
|
inline |
Definition at line 88 of file httpserver.h.
References _daemon, handle_request_callback(), and HTTP_PORT.
Referenced by main().
|
inline |
|
private |
Definition at line 105 of file httpserver.h.
|
private |
Definition at line 106 of file httpserver.h.
Referenced by histogram_getter().