Hi Gavin.
...
daemon = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION,
HTTP_DAEMON_PORT, NULL, NULL, &ahc_get, your_config_instance,
MHD_OPTION_END);
...
so you would be able to access it as:
...
static enum MHD_Result ahc_get(void *cls, struct MHD_Connection *connection,
const char *url, const char *method,
const char *version, const char *upload_data,
size_t *upload_data_size, void **ptr)
{
your_config_instance = cls;
...
Let me know if this is what you are looking for.
The "ptr" in general is used to share something between requests. I have been using both
in my project.