Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
Diff: tcp/tcb.h
- Revision:
- 10:f0854784e960
- Child:
- 52:fbc5a46b5e16
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tcp/tcb.h Sun Apr 16 14:21:55 2017 +0000
@@ -0,0 +1,24 @@
+#define TCB_CLOSED 0
+#define TCB_SYN_RECEIVED 1
+#define TCB_ESTABLISHED 2
+#define TCB_CLOSING 3
+
+struct tcb
+{
+ int state;
+ uint16_t mss;
+ uint16_t port;
+ uint32_t locIsn;
+ uint32_t remIsn;
+ uint32_t locSeq;
+ uint32_t remSeq;
+ uint32_t timer;
+ int32_t tag;
+};
+
+
+extern uint32_t TcbGetIsn();
+extern struct tcb* TcbGetExisting(uint16_t port);
+extern struct tcb* TcbGetEmpty();
+extern void TcbReap(uint32_t now);
+extern void TcbInit();
\ No newline at end of file