A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.
Dependents: oldheating gps motorhome heating
Diff: tcp/http/http.c
- Revision:
- 146:0fc66d610fd6
- Parent:
- 145:206bf0d073c7
- Child:
- 147:a6093b52e654
--- a/tcp/http/http.c Tue May 14 15:09:39 2019 +0000 +++ b/tcp/http/http.c Wed May 15 15:33:15 2019 +0000 @@ -1,4 +1,8 @@ #include <stdbool.h> +#include <stdint.h> bool HttpTrace = false; -bool HttpsTrace = false; + +//Plumb into these from your html server +void (*HttpRequestFunction)(int size, char* pRequestStream, uint32_t positionInRequestStream, char* pState); +bool (*HttpReplyPollFunction)(char* pState, bool clientFinished);