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@94:e2973a2c488e, 2018-12-05 (annotated)
- Committer:
- andrewboyson
- Date:
- Wed Dec 05 18:30:37 2018 +0000
- Revision:
- 94:e2973a2c488e
- Parent:
- 79:f50e02fb5c94
- Child:
- 144:6bd5c54efc7d
Fixed bug - incorrect MSS being sent from a polled sync: expected 1440 but had -60. Traced to buffer datalength in EthPollForPacketToSend being set to zero instead of being calculated from the buffer length - headersize.
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); |