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:
- 142:a8c0890a58d1
- Parent:
- 131:774f7f367031
- Child:
- 144:6bd5c54efc7d
--- a/tcp/http/http.c Sat Apr 27 09:24:44 2019 +0000 +++ b/tcp/http/http.c Wed May 08 12:15:13 2019 +0000 @@ -6,7 +6,7 @@ #include "net.h" #include "log.h" #include "led.h" -#include "fault.h" +#include "restart.h" bool HttpTrace = false; @@ -16,8 +16,8 @@ void HttpHandleRequest(int size, char* pRequestStream, uint32_t positionInRequestStream, int* pToDo, bool* pPostComplete, uint32_t* pDelayUntil) { - int lastFaultPoint = FaultPoint; - FaultPoint = FAULT_POINT_HttpHandleRequest; + int lastRestartPoint = RestartPoint; + RestartPoint = FAULT_POINT_HttpHandleRequest; if (HttpTrace) { @@ -26,7 +26,7 @@ HttpRequestFunction(size, pRequestStream, positionInRequestStream, pToDo, pPostComplete, pDelayUntil); - FaultPoint = lastFaultPoint; + RestartPoint = lastRestartPoint; } void HttpSendReply(int* pSize, char* pReplyStream, uint32_t positionInReplyStream, uint16_t mss, int todo) {