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
tcp/tcb.h
- Committer:
- andrewboyson
- Date:
- 2017-04-16
- Revision:
- 10:f0854784e960
- Child:
- 52:fbc5a46b5e16
File content as of revision 10:f0854784e960:
#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();