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:
- 79:f50e02fb5c94
- Parent:
- 61:aad055f1b0d1
- Child:
- 144:6bd5c54efc7d
--- a/tcp/tcpbuf.h Mon Nov 05 19:27:19 2018 +0000 +++ b/tcp/tcpbuf.h Sun Nov 11 15:44:23 2018 +0000 @@ -1,4 +1,5 @@ #include <stdarg.h> +#include <stdint.h> extern void TcpBufAddChar (char c); extern void TcpBufFillChar (char c, int length); @@ -8,5 +9,5 @@ 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 void TcpBufStart (uint32_t position, int mss, char *pData); extern int TcpBufLength (void);