Andrew Boyson / net

Dependents:   oldheating gps motorhome heating

tcp/tcb.h

Committer:
andrewboyson
Date:
2017-11-13
Revision:
54:84ef2b29cf7e
Parent:
52:fbc5a46b5e16
Child:
57:e0fb648acf48

File content as of revision 54:84ef2b29cf7e:

#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 elapsed;
     int32_t todo;
};

extern uint32_t    TcbElapsed;
extern uint32_t    TcbGetIsn();
extern struct tcb* TcbGetExisting(uint16_t port);
extern struct tcb* TcbGetEmpty();
extern void        TcbMain();
extern void        TcbInit();