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

Revision:
131:774f7f367031
Parent:
129:9c57197fb698
Child:
142:a8c0890a58d1
--- a/tcp/http/http.c	Wed Mar 13 17:47:07 2019 +0000
+++ b/tcp/http/http.c	Tue Mar 19 12:12:26 2019 +0000
@@ -11,10 +11,10 @@
 bool HttpTrace = false;
 
 //Plumb into these from your html server
-void (*HttpRequestFunction)(int size, char* pRequestStream, uint32_t positionInRequestStream, int* pToDo, bool* pPostComplete);
+void (*HttpRequestFunction)(int size, char* pRequestStream, uint32_t positionInRequestStream, int* pToDo, bool* pPostComplete, uint32_t* pDelayUntil);
 void (*HttpReplyFunction  )(int todo);
 
-void HttpHandleRequest(int size, char* pRequestStream, uint32_t positionInRequestStream, int* pToDo, bool* pPostComplete)
+void HttpHandleRequest(int size, char* pRequestStream, uint32_t positionInRequestStream, int* pToDo, bool* pPostComplete, uint32_t* pDelayUntil)
 {
     int lastFaultPoint = FaultPoint;
     FaultPoint = FAULT_POINT_HttpHandleRequest;
@@ -24,7 +24,7 @@
         LogF("HTTP  <<< %d (%u)\r\n", size, positionInRequestStream);
     }
     
-    HttpRequestFunction(size, pRequestStream, positionInRequestStream, pToDo, pPostComplete);
+    HttpRequestFunction(size, pRequestStream, positionInRequestStream, pToDo, pPostComplete, pDelayUntil);
     
     FaultPoint = lastFaultPoint;
 }