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@57:e0fb648acf48, 2017-11-28 (annotated)
- 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?
| User | Revision | Line number | New 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(); |