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

Committer:
andrewboyson
Date:
Mon Nov 13 21:46:31 2017 +0000
Revision:
55:e64b8b47a2b6
Parent:
54:84ef2b29cf7e
Child:
61:aad055f1b0d1
Rearranged the TCP code

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 54:84ef2b29cf7e 1 extern void HttpAddChar (char c);
andrewboyson 54:84ef2b29cf7e 2 extern void HttpFillChar (char c, int length);
andrewboyson 54:84ef2b29cf7e 3 extern int HttpAddText (const char* text);
andrewboyson 54:84ef2b29cf7e 4 extern int HttpAddV (char *fmt, va_list argptr);
andrewboyson 54:84ef2b29cf7e 5 extern int HttpAddF (char *fmt, ...);
andrewboyson 54:84ef2b29cf7e 6 extern void HttpAddData (const char* data, int length);
andrewboyson 54:84ef2b29cf7e 7 extern void HttpAddStream(void (*startFunction)(void), int (*enumerateFunction)(void));
andrewboyson 54:84ef2b29cf7e 8
andrewboyson 54:84ef2b29cf7e 9 extern void HttpReadRequest (char *p, int len, char** ppMethod, char** ppPath, char** ppQuery, char** ppLastModified);
andrewboyson 54:84ef2b29cf7e 10 extern char* HttpGetNextLine (char* p, char* pE);
andrewboyson 54:84ef2b29cf7e 11 extern void HttpSplitRequest(char* p, char** ppMethod, char** ppPath, char** ppQuery);
andrewboyson 54:84ef2b29cf7e 12 extern void HttpSplitHeader (char* p, char** ppName, char** ppValue);
andrewboyson 54:84ef2b29cf7e 13 extern char* HttpSplitQuery (char* p, char** ppName, char** ppValue);
andrewboyson 54:84ef2b29cf7e 14 extern void HttpDecodeValue (char* value);
andrewboyson 54:84ef2b29cf7e 15
andrewboyson 54:84ef2b29cf7e 16 extern int (*HttpRequestFunction)(char *pPath, char* pLastModified, char *pQuery);
andrewboyson 54:84ef2b29cf7e 17 extern void (*HttpReplyFunction)(int todo);
andrewboyson 54:84ef2b29cf7e 18
andrewboyson 54:84ef2b29cf7e 19 extern bool HttpTrace;
andrewboyson 55:e64b8b47a2b6 20 extern int HttpHandleRequest(int* pSize, char* pRequestStream, int positionInRequestStream, char* pReplyStream, int positionInReplyStream, uint16_t mss, int* pToDo);
andrewboyson 54:84ef2b29cf7e 21
andrewboyson 54:84ef2b29cf7e 22 extern void HttpDateFromDateTime(const char* date, const char *ptime, char* ptext);
andrewboyson 54:84ef2b29cf7e 23 extern void HttpDateFromNow(char* pText);
andrewboyson 54:84ef2b29cf7e 24
andrewboyson 54:84ef2b29cf7e 25 #define HTTP_DATE_LENGTH 30
andrewboyson 54:84ef2b29cf7e 26