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
tcp/tcpbuf.h@144:6bd5c54efc7d, 2019-05-12 (annotated)
- Committer:
- andrewboyson
- Date:
- Sun May 12 17:17:49 2019 +0000
- Revision:
- 144:6bd5c54efc7d
- Parent:
- 79:f50e02fb5c94
- Child:
- 145:206bf0d073c7
Tidied up tcp.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 61:aad055f1b0d1 | 1 | #include <stdarg.h> |
andrewboyson | 79:f50e02fb5c94 | 2 | #include <stdint.h> |
andrewboyson | 54:84ef2b29cf7e | 3 | |
andrewboyson | 54:84ef2b29cf7e | 4 | extern void TcpBufAddChar (char c); |
andrewboyson | 54:84ef2b29cf7e | 5 | extern void TcpBufFillChar (char c, int length); |
andrewboyson | 54:84ef2b29cf7e | 6 | extern int TcpBufAddText (const char* text); |
andrewboyson | 54:84ef2b29cf7e | 7 | extern int TcpBufAddV (char *fmt, va_list argptr); |
andrewboyson | 54:84ef2b29cf7e | 8 | extern int TcpBufAddF (char *fmt, ...); |
andrewboyson | 54:84ef2b29cf7e | 9 | extern void TcpBufAddData (const char* data, int length); |
andrewboyson | 54:84ef2b29cf7e | 10 | extern void TcpBufAddStream(void (*startFunction)(void), int (*enumerateFunction)(void)); |
andrewboyson | 54:84ef2b29cf7e | 11 | |
andrewboyson | 79:f50e02fb5c94 | 12 | extern void TcpBufStart (uint32_t position, int mss, char *pData); |
andrewboyson | 61:aad055f1b0d1 | 13 | extern int TcpBufLength (void); |
andrewboyson | 144:6bd5c54efc7d | 14 | |
andrewboyson | 144:6bd5c54efc7d | 15 | |
andrewboyson | 144:6bd5c54efc7d | 16 | #define TCP_APP_NOT_STARTED 0 |
andrewboyson | 144:6bd5c54efc7d | 17 | #define TCP_APP_STARTED 1 |
andrewboyson | 144:6bd5c54efc7d | 18 | #define TCP_APP_FINISHED -1 |