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:
- 79:f50e02fb5c94
- Parent:
- 75:603b10404183
- Child:
- 98:b977424ec7f7
--- a/tcp/http/http.c Mon Nov 05 19:27:19 2018 +0000 +++ b/tcp/http/http.c Sun Nov 11 15:44:23 2018 +0000 @@ -12,11 +12,11 @@ void (*HttpReplyFunction )(int todo); //Plumb into this from your html server int (*HttpRequestFunction)(char *pPath, char *pLastModified, char *pQuery); //Plumb into this from your html server -void HttpHandleRequest(int size, char* pRequestStream, int positionInRequestStream, int* pToDo) +void HttpHandleRequest(int size, char* pRequestStream, uint32_t positionInRequestStream, int* pToDo) { if (HttpTrace) { - LogF("HTTP <<< %d (%d)\r\n", size, positionInRequestStream); + LogF("HTTP <<< %d (%u)\r\n", size, positionInRequestStream); } //Handle request for the first packet of data received but leave todo the same after that. if (size && positionInRequestStream == 0) @@ -30,7 +30,7 @@ } } -void HttpSendReply(int* pSize, char* pReplyStream, int positionInReplyStream, uint16_t mss, int todo) +void HttpSendReply(int* pSize, char* pReplyStream, uint32_t positionInReplyStream, uint16_t mss, int todo) { TcpBufStart(positionInReplyStream, mss, pReplyStream); HttpReplyFunction(todo);