A Discrete-Event Network Simulator
API
Public Member Functions | Public Attributes | List of all members
ns3::TcpTxItem Class Reference

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

#include "tcp-tx-buffer.h"

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().

◆ 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<<().

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

bool ns3::TcpTxItem::m_lost {false}

◆ m_packet

Ptr<Packet> ns3::TcpTxItem::m_packet {nullptr}

◆ m_retrans

bool ns3::TcpTxItem::m_retrans {false}

◆ m_sacked

bool ns3::TcpTxItem::m_sacked {false}

◆ m_startSeq

SequenceNumber32 ns3::TcpTxItem::m_startSeq {0}

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