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:
Thu Jan 11 17:38:21 2018 +0000
Revision:
61:aad055f1b0d1
Parent:
tcp/http/httpsend.cpp@54:84ef2b29cf7e
Child:
96:43eb7a110f1a
Removed dependence on Mbed OS

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 54:84ef2b29cf7e 1 #include "tcpbuf.h"
andrewboyson 54:84ef2b29cf7e 2
andrewboyson 54:84ef2b29cf7e 3 void HttpAddChar (char c) { TcpBufAddChar(c); }
andrewboyson 54:84ef2b29cf7e 4 void HttpFillChar (char c, int length) { TcpBufFillChar(c, length); }
andrewboyson 54:84ef2b29cf7e 5 int HttpAddText (const char* text) { return TcpBufAddText(text); }
andrewboyson 54:84ef2b29cf7e 6 int HttpAddV (char *fmt, va_list argptr) { return TcpBufAddV(fmt, argptr); }
andrewboyson 54:84ef2b29cf7e 7 int HttpAddF (char *fmt, ...)
andrewboyson 54:84ef2b29cf7e 8 {
andrewboyson 54:84ef2b29cf7e 9 va_list argptr;
andrewboyson 54:84ef2b29cf7e 10 va_start(argptr, fmt);
andrewboyson 54:84ef2b29cf7e 11 int size = TcpBufAddV(fmt, argptr);
andrewboyson 54:84ef2b29cf7e 12 va_end(argptr);
andrewboyson 54:84ef2b29cf7e 13 return size;
andrewboyson 54:84ef2b29cf7e 14 }
andrewboyson 54:84ef2b29cf7e 15 void HttpAddData (const char* data, int length) { TcpBufAddData(data, length); }
andrewboyson 54:84ef2b29cf7e 16 void HttpAddStream(void (*startFunction)(void), int (*enumerateFunction)(void)) { TcpBufAddStream(startFunction, enumerateFunction);}