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:
- 145:206bf0d073c7
- Parent:
- 144:6bd5c54efc7d
- Child:
- 146:0fc66d610fd6
--- a/tcp/tcpbuf.h Sun May 12 17:17:49 2019 +0000 +++ b/tcp/tcpbuf.h Tue May 14 15:09:39 2019 +0000 @@ -1,18 +1,8 @@ #include <stdarg.h> #include <stdint.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)); +#include <stdbool.h> extern void TcpBufStart (uint32_t position, int mss, char *pData); +extern void TcpBufAddChar (char c); extern int TcpBufLength (void); - - -#define TCP_APP_NOT_STARTED 0 -#define TCP_APP_STARTED 1 -#define TCP_APP_FINISHED -1 \ No newline at end of file +extern bool TcpBufFilled (void); \ No newline at end of file