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

Revision:
156:be12b8fd5b21
Parent:
93:580fc113d9e9
Child:
161:89609cf070b4
diff -r 22f249751106 -r be12b8fd5b21 tcp/tcb.c
--- a/tcp/tcb.c	Tue Aug 20 14:49:00 2019 +0000
+++ b/tcp/tcb.c	Wed Aug 28 07:11:58 2019 +0000
@@ -45,6 +45,10 @@
     else                         return tcbs;
     
 }
+int TcbGetId(struct tcb* pTcb) //0 means none
+{
+    return pTcb - tcbs + 1;
+}
 void TcbInit()
 {
     for (int i = 0; i < TCB_COUNT; i++) tcbs[i].state = TCB_EMPTY;