Ptr< Packet > Copy(void) const
performs a COW copy of the packet.
uint32_t GetSize(void) const
Returns the the size in bytes of the packet (including the zero-filled initial payload).
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.
TimeWithUnit As(const enum Unit unit=Time::AUTO) const
Attach a unit to a Time, to facilitate output in a specific unit.
Every class exported by the ns3 library is enclosed in the ns3 namespace.