22 #include "ns3/packet.h"
23 #include "ns3/nstime.h"
24 #include "ns3/sequence-number.h"
Item that encloses the application packet and some flags for it.
bool m_sacked
Indicates if the segment has been SACKed.
RateInformation & GetRateInformation(void)
Get (to modify) the Rate Information of this item.
bool m_retrans
Indicates if the segment is retransmitted.
SequenceNumber32 m_startSeq
Sequence number of the item (if transmitted)
Time m_lastSent
Timestamp of the time at which the segment has been sent last time.
RateInformation m_rateInfo
Rate information of the item.
uint32_t GetSeqSize(void) const
Get the size in the sequence number space.
bool IsRetrans(void) const
Is the item retransmitted?
bool IsSacked(void) const
Is the item sacked?
const Time & GetLastSent(void) const
Get a reference to the time the packet was sent for the last time.
Ptr< const Packet > GetPacket(void) const
Get the Packet underlying this item.
Ptr< Packet > GetPacketCopy(void) const
Get a copy of the Packet underlying this item.
bool m_lost
Indicates if the segment has been lost (RTO)
Ptr< Packet > m_packet
Application packet (can be null)
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).
Every class exported by the ns3 library is enclosed in the ns3 namespace.