TCP utility function prototypes. More...
Go to the source code of this file.
Defines | |
| #define | SeqIsBetween(x, low, high) ((uint32_t)(x - low) <= (uint32_t)(high - low)) |
| Wraparound-safe TCP sequence number comparison, (low <= x <= high) | |
| #define | SeqIsAfter(x, low) ((int32_t)(low - x) < 0) |
| Wraparound-safe TCP sequence number comparison, (x > low) | |
Functions | |
| void | NutTcpCalcRtt (TCPSOCKET *sock) |
TCP utility function prototypes.
Wraparound-safe TCP sequence number comparison, (low <= x <= high)
Returns true if x is between low and high inclusive, false otherwise.
| #define SeqIsAfter | ( | x, | |
| low | |||
| ) | ((int32_t)(low - x) < 0) |
Wraparound-safe TCP sequence number comparison, (x > low)
Returns true if number x comes after low.
Values between low ... low+1 - (1<<31) are in the past Values between low+1 ... low + (1<<31) are in the future