LO53 PROJECT - AP DOCUMENTATION
Project based on Indoor Positionning System
/home/junicode/Documents/LO53_Project/LO53_AP_Development/http_deamon.h
Go to the documentation of this file.
1 
10 #include <stdio.h>
11 #include <stdlib.h>
12 #include <string.h>
13 #include <microhttpd.h>
14 #include <sys/types.h>
15 #include <sys/select.h>
16 #include <netinet/in.h>
17 
18 #include "rssi_list.h"
19 
20 Element * tracked_devices; // We declare the main devices linked-list here aigain so that we shall use it in the http_deamon.c file
21 
22 #define PORT 8888 // We define the connection port to the microHttp server
23 
29 int answer_to_connection (void *cls, struct MHD_Connection *connection,
30  const char *url, const char *method,
31  const char *version, const char *upload_data,
32  size_t *upload_data_size, void **con_cls);
contains one element of the Device list The device list shall be sorted by device's MAC ...
Element * tracked_devices
Definition: http_deamon.h:20
int answer_to_connection(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 **con_cls)
answer to the mapserver Http request
Definition: http_deamon.c:17