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/tcpbuf.h
- Revision:
- 54:84ef2b29cf7e
- Child:
- 61:aad055f1b0d1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tcp/tcpbuf.h Mon Nov 13 08:06:55 2017 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" + +extern void TcpBufAddChar (char c); +extern void TcpBufFillChar (char c, int length); +extern int TcpBufAddText (const char* text); +extern int TcpBufAddV (char *fmt, va_list argptr); +extern int TcpBufAddF (char *fmt, ...); +extern void TcpBufAddData (const char* data, int length); +extern void TcpBufAddStream(void (*startFunction)(void), int (*enumerateFunction)(void)); + +extern void TcpBufStart (int position, int mss, char *pData); +extern int TcpBufLength ();