itpp::Sequence_Number Class Reference
[Protocols Module]
#include <tcp.h>
List of all members.
Detailed Description
TSequenceNumber represents a sequence number in a byte stream. As simulations may get quite long sequence numbers based on 32 bit integers may overflow. This is not a major problem as long as this overflow is considered when comparing sequence numbers. TSequenceNumber defines relational operators base on subtraction instead of using built-in int relational operators. This approach works well for arbitrary long simulations as long as the "real" sequence numbers (i.e. the numbers seen without overflow) compared to each other do not differ by more than 2^31-1 (INT_MAX) which is not a serious restriction in a realistic TCP scenario.
- See also:
- TTCPSegment
- Author:
- Bodamer
The documentation for this class was generated from the following file: