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:
- 2018-01-11
- Revision:
- 61:aad055f1b0d1
- Parent:
- 57:e0fb648acf48
- Child:
- 71:736a5747ade1
File content as of revision 61:aad055f1b0d1:
#include <stdint.h>
#include <stdbool.h>
#define TCB_EMPTY 0
#define TCB_SYN_RECEIVED 1
#define TCB_ESTABLISHED 2
#define TCB_FIN_WAIT 3
#define TCB_ACK_WAIT 4
struct tcb
{
int state;
bool hadFin;
uint16_t mss;
uint16_t port;
uint32_t sendIsn;
uint32_t recvIsn;
uint32_t sentBytes;
uint32_t recdBytes;
uint32_t elapsed;
int32_t todo;
};
extern uint32_t TcbElapsed;
extern uint32_t TcbGetIsn(void);
extern struct tcb* TcbGetExisting(uint16_t port);
extern struct tcb* TcbGetEmpty(void);
extern void TcbMain(void);
extern void TcbInit(void);