Put FastCGI code into server framework
authorSam Moore <[email protected]>
Mon, 19 Aug 2013 12:56:33 +0000 (20:56 +0800)
committerSam Moore <[email protected]>
Mon, 19 Aug 2013 12:56:33 +0000 (20:56 +0800)
commitab0ae45f79caaae86b36f8230f9399138c9e73bc
treea20dabb2228ca16cee48e47fbf111ffa84bc3e47
parentfa3b75e39142207113d3fe1eee0ddcdd6f1aef39
Put FastCGI code into server framework

Implement basic SensorHandler function.
Can now get data from (simulated still) sensor displayed in web browser.

SensorHandler deals with argument checking, identifies the sensor,
sends the JSON, etc, calls Sensor_Query appropriately.

Sensor_Query actually fills a buffer with requested number of data points.

Example of use:
http://server.address/api/sensor?id=0

Use run.sh to start fastcgi server under valgrind.
12 files changed:
MCTX3420.pod
server/Makefile
server/common.h
server/fastcgi.c [new file with mode: 0644]
server/fastcgi.h [new file with mode: 0644]
server/index.html [new file with mode: 0644]
server/main.c
server/query.c [deleted file]
server/query.h [deleted file]
server/run.sh [new file with mode: 0755]
server/sensor.c
server/sensor.h

UCC git Repository :: git.ucc.asn.au