Item that encloses the application packet and some flags for it. More...
#include "tcp-tx-item.h"
Collaboration diagram for ns3::TcpTxItem:Classes | |
| struct | RateInformation |
| Various rate-related information, can be accessed by TcpRateOps. More... | |
Public Member Functions | |
| const Time & | GetLastSent () const |
| Get a reference to the time the packet was sent for the last time. | |
| Ptr< const Packet > | GetPacket () const |
| Get the Packet underlying this item. | |
| Ptr< Packet > | GetPacketCopy () const |
| Get a copy of the Packet underlying this item. | |
| RateInformation & | GetRateInformation () |
| Get (to modify) the Rate Information of this item. | |
| uint32_t | GetSeqSize () const |
| Get the size in the sequence number space. | |
| bool | IsRetrans () const |
| Is the item retransmitted? | |
| bool | IsSacked () const |
| Is the item sacked? | |
| void | Print (std::ostream &os, Time::Unit unit=Time::S) const |
| Print the time. | |
Public Attributes | |
| bool | m_retrans {false} |
| Indicates if the segment is retransmitted. | |
Private Attributes | |
| Time | m_lastSent |
| Timestamp of the time at which the segment has been sent last time. | |
| bool | m_lost {false} |
| Indicates if the segment has been lost (RTO) | |
| Ptr< Packet > | m_packet {nullptr} |
| Application packet (can be null) | |
| RateInformation | m_rateInfo |
| Rate information of the item. | |
| bool | m_sacked {false} |
| Indicates if the segment has been SACKed. | |
| SequenceNumber32 | m_startSeq {0} |
| Sequence number of the item (if transmitted) | |
Friends | |
| class | TcpTxBuffer |
Item that encloses the application packet and some flags for it.
Definition at line 21 of file tcp-tx-item.h.
Get a reference to the time the packet was sent for the last time.
Definition at line 80 of file tcp-tx-item.cc.
References m_lastSent.
Get the Packet underlying this item.
Definition at line 74 of file tcp-tx-item.cc.
References m_packet.
Get a copy of the Packet underlying this item.
Definition at line 68 of file tcp-tx-item.cc.
References m_packet.
Referenced by ns3::TcpTxBuffer::DiscardUpTo().
Here is the caller graph for this function:| TcpTxItem::RateInformation & ns3::TcpTxItem::GetRateInformation | ( | ) |
Get (to modify) the Rate Information of this item.
Definition at line 86 of file tcp-tx-item.cc.
References m_rateInfo.
| uint32_t ns3::TcpTxItem::GetSeqSize | ( | ) | const |
Get the size in the sequence number space.
Definition at line 50 of file tcp-tx-item.cc.
References m_packet.
Referenced by Print().
Here is the caller graph for this function:| bool ns3::TcpTxItem::IsRetrans | ( | ) | const |
Is the item retransmitted?
Definition at line 62 of file tcp-tx-item.cc.
References m_retrans.
Referenced by ns3::TcpSocketBase::SendDataPacket().
Here is the caller graph for this function:| bool ns3::TcpTxItem::IsSacked | ( | ) | const |
Is the item sacked?
Definition at line 56 of file tcp-tx-item.cc.
References m_sacked.
| void ns3::TcpTxItem::Print | ( | std::ostream & | os, |
| Time::Unit | unit = Time::S |
||
| ) | const |
Print the time.
| os | ostream |
| unit | Time::Unit |
Definition at line 13 of file tcp-tx-item.cc.
References ns3::Time::As(), ns3::Create(), GetSeqSize(), m_lastSent, m_lost, m_retrans, m_sacked, and m_startSeq.
Here is the call graph for this function:
|
friend |
Definition at line 98 of file tcp-tx-item.h.
|
private |
Timestamp of the time at which the segment has been sent last time.
Definition at line 103 of file tcp-tx-item.h.
Referenced by GetLastSent(), and Print().
|
private |
Indicates if the segment has been lost (RTO)
Definition at line 102 of file tcp-tx-item.h.
Referenced by Print(), and ns3::TcpTxBuffer::UpdateLostCount().
Application packet (can be null)
Definition at line 101 of file tcp-tx-item.h.
Referenced by GetPacket(), GetPacketCopy(), and GetSeqSize().
|
private |
Rate information of the item.
Definition at line 107 of file tcp-tx-item.h.
Referenced by GetRateInformation().
| bool ns3::TcpTxItem::m_retrans {false} |
Indicates if the segment is retransmitted.
Definition at line 93 of file tcp-tx-item.h.
Referenced by IsRetrans(), Print(), and ns3::TcpTxBuffer::ResetSentList().
|
private |
Indicates if the segment has been SACKed.
Definition at line 105 of file tcp-tx-item.h.
Referenced by IsSacked(), and Print().
|
private |
Sequence number of the item (if transmitted)
Definition at line 100 of file tcp-tx-item.h.
Referenced by Print().