10#include "ns3/nstime.h"
11#include "ns3/packet.h"
12#include "ns3/sequence-number.h"
Smart pointer class similar to boost::intrusive_ptr.
Item that encloses the application packet and some flags for it.
bool m_sacked
Indicates if the segment has been SACKed.
bool m_retrans
Indicates if the segment is retransmitted.
SequenceNumber32 m_startSeq
Sequence number of the item (if transmitted)
bool IsSacked() const
Is the item sacked?
Time m_lastSent
Timestamp of the time at which the segment has been sent last time.
RateInformation m_rateInfo
Rate information of the item.
Ptr< const Packet > GetPacket() const
Get the Packet underlying this item.
uint32_t GetSeqSize() const
Get the size in the sequence number space.
Ptr< Packet > GetPacketCopy() const
Get a copy of the Packet underlying this item.
const Time & GetLastSent() const
Get a reference to the time the packet was sent for the last time.
RateInformation & GetRateInformation()
Get (to modify) the Rate Information of this item.
bool m_lost
Indicates if the segment has been lost (RTO)
Ptr< Packet > m_packet
Application packet (can be null)
bool IsRetrans() const
Is the item retransmitted?
void Print(std::ostream &os, Time::Unit unit=Time::S) const
Print the time.
Simulation virtual time values and global simulation resolution.
Unit
The unit to use to interpret a number representing time.
static Time Max()
Maximum representable Time Not to be confused with Max(Time,Time).
SequenceNumber< uint32_t, int32_t > SequenceNumber32
32 bit Sequence number.
Every class exported by the ns3 library is enclosed in the ns3 namespace.