#include <timers.h> // tTimer
#include <semaphore.h> // tSemaphore
+#define CACHE_FUTURE_PACKETS_IN_BYTES 1 // Use a ring buffer to cache out of order packets?
+
typedef struct sTCPHeader tTCPHeader;
typedef struct sTCPListener tTCPListener;
typedef struct sTCPStoredPacket tTCPStoredPacket;
* \todo Convert this to a ring buffer and a bitmap of valid bytes
* \{
*/
- #if CACHE_FUTURE_PACKETS_OR_BYTES == bytes
+ #if CACHE_FUTURE_PACKETS_IN_BYTES
Uint32 HighestSequenceRcvd; //!< Highest sequence number (within window) recieved
Uint8 *FuturePacketData; //!< Future packet data (indexed by sequence number)
Uint8 *FuturePacketValidBytes; //!< Valid byte bitmap (WINDOW_SIZE/8 bytes)