Andrew Boyson / net

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Tue Nov 28 17:05:46 2017 +0000
Revision:
57:e0fb648acf48
Parent:
54:84ef2b29cf7e
Child:
61:aad055f1b0d1
Added TFTP

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 57:e0fb648acf48 1 #define TCB_EMPTY 0
andrewboyson 10:f0854784e960 2 #define TCB_SYN_RECEIVED 1
andrewboyson 10:f0854784e960 3 #define TCB_ESTABLISHED 2
andrewboyson 57:e0fb648acf48 4 #define TCB_FIN_WAIT 3
andrewboyson 57:e0fb648acf48 5 #define TCB_ACK_WAIT 4
andrewboyson 10:f0854784e960 6
andrewboyson 10:f0854784e960 7 struct tcb
andrewboyson 10:f0854784e960 8 {
andrewboyson 10:f0854784e960 9 int state;
andrewboyson 57:e0fb648acf48 10 bool hadFin;
andrewboyson 10:f0854784e960 11 uint16_t mss;
andrewboyson 10:f0854784e960 12 uint16_t port;
andrewboyson 57:e0fb648acf48 13 uint32_t sendIsn;
andrewboyson 57:e0fb648acf48 14 uint32_t recvIsn;
andrewboyson 57:e0fb648acf48 15 uint32_t sentBytes;
andrewboyson 57:e0fb648acf48 16 uint32_t recdBytes;
andrewboyson 52:fbc5a46b5e16 17 uint32_t elapsed;
andrewboyson 54:84ef2b29cf7e 18 int32_t todo;
andrewboyson 10:f0854784e960 19 };
andrewboyson 10:f0854784e960 20
andrewboyson 52:fbc5a46b5e16 21 extern uint32_t TcbElapsed;
andrewboyson 10:f0854784e960 22 extern uint32_t TcbGetIsn();
andrewboyson 10:f0854784e960 23 extern struct tcb* TcbGetExisting(uint16_t port);
andrewboyson 10:f0854784e960 24 extern struct tcb* TcbGetEmpty();
andrewboyson 52:fbc5a46b5e16 25 extern void TcbMain();
andrewboyson 10:f0854784e960 26 extern void TcbInit();