Andrew Boyson / net

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Sat Oct 20 18:56:13 2018 +0000
Revision:
71:736a5747ade1
Parent:
61:aad055f1b0d1
Child:
74:c3756bfa960e
Started process of making TCP pollable

Who changed what in which revision?

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