A Discrete-Event Network Simulator
API
ns3::TcpTxItem Class Reference

Item that encloses the application packet and some flags for it. More...

#include "tcp-tx-buffer.h"

+ Collaboration diagram for ns3::TcpTxItem:

Public Member Functions

uint32_t GetSeqSize (void) const
 Get the size in the sequence number space. More...
 
void Print (std::ostream &os) const
 Print the time. More...
 

Public Attributes

Time m_lastSent {Time::Min()}
 Timestamp of the time at which the segment has been sent last time. More...
 
bool m_lost {false}
 Indicates if the segment has been lost (RTO) More...
 
Ptr< Packetm_packet {nullptr}
 Application packet (can be null) More...
 
bool m_retrans {false}
 Indicates if the segment is retransmitted. More...
 
bool m_sacked {false}
 Indicates if the segment has been SACKed. More...
 
SequenceNumber32 m_startSeq {0}
 Sequence number of the item (if transmitted) More...
 

Detailed Description

Item that encloses the application packet and some flags for it.

Definition at line 40 of file tcp-tx-buffer.h.

Member Function Documentation

◆ GetSeqSize()

uint32_t ns3::TcpTxItem::GetSeqSize ( void  ) const
inline

Get the size in the sequence number space.

Returns
1 if the packet size is 0 or there's no packet, otherwise the size of the packet

Definition at line 56 of file tcp-tx-buffer.h.

References ns3::Packet::GetSize(), and m_packet.

Referenced by Print().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Print()

void ns3::TcpTxItem::Print ( std::ostream &  os) const

Print the time.

Parameters
osostream

Definition at line 37 of file tcp-tx-buffer.cc.

References ns3::Time::GetSeconds(), GetSeqSize(), m_lastSent, m_lost, m_retrans, m_sacked, and m_startSeq.

Referenced by ns3::operator<<().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_lastSent

Time ns3::TcpTxItem::m_lastSent {Time::Min()}

Timestamp of the time at which the segment has been sent last time.

Definition at line 62 of file tcp-tx-buffer.h.

Referenced by ns3::TcpTxBuffer::CopyFromSequence(), ns3::TcpTxBuffer::MergeItems(), Print(), and ns3::TcpTxBuffer::SplitItems().

◆ m_lost

◆ m_packet

◆ m_retrans

◆ m_sacked

◆ m_startSeq

SequenceNumber32 ns3::TcpTxItem::m_startSeq {0}

The documentation for this class was generated from the following files: