A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::PacketLossCounter Class Reference

#include <packet-loss-counter.h>

Public Member Functions

 PacketLossCounter (uint8_t bitmapSize)
 ~PacketLossCounter ()
uint16_t GetBitMapSize (void) const
uint32_t GetLost (void) const
void NotifyReceived (uint32_t seq)
void SetBitMapSize (uint16_t size)

Private Member Functions

bool GetBit (uint32_t seqNum)
void SetBit (uint32_t seqNum, bool val)

Private Attributes

uint16_t m_bitMapSize
uint32_t m_lastMaxSeqNum
uint32_t m_lost
uint8_t * m_receiveBitMap

Detailed Description

Definition at line 36 of file packet-loss-counter.h.

Constructor & Destructor Documentation

ns3::PacketLossCounter::PacketLossCounter ( uint8_t  bitmapSize)

Definition at line 32 of file packet-loss-counter.cc.

References SetBitMapSize().

+ Here is the call graph for this function:

ns3::PacketLossCounter::~PacketLossCounter ( )

Definition at line 41 of file packet-loss-counter.cc.

References m_receiveBitMap.

Member Function Documentation

bool ns3::PacketLossCounter::GetBit ( uint32_t  seqNum)
private

Definition at line 73 of file packet-loss-counter.cc.

References m_bitMapSize, and m_receiveBitMap.

Referenced by NotifyReceived().

+ Here is the caller graph for this function:

uint16_t ns3::PacketLossCounter::GetBitMapSize ( void  ) const

Definition at line 47 of file packet-loss-counter.cc.

References m_bitMapSize.

Referenced by ns3::UdpServer::GetPacketWindowSize().

+ Here is the caller graph for this function:

uint32_t ns3::PacketLossCounter::GetLost ( void  ) const

Definition at line 67 of file packet-loss-counter.cc.

References m_lost.

Referenced by PacketLossCounterTestCase::DoRun(), and ns3::UdpServer::GetLost().

+ Here is the caller graph for this function:

void ns3::PacketLossCounter::NotifyReceived ( uint32_t  seq)

Definition at line 104 of file packet-loss-counter.cc.

References GetBit(), m_bitMapSize, m_lastMaxSeqNum, m_lost, NS_LOG_INFO, and SetBit().

Referenced by PacketLossCounterTestCase::DoRun(), and ns3::UdpServer::HandleRead().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::PacketLossCounter::SetBit ( uint32_t  seqNum,
bool  val 
)
private

Definition at line 79 of file packet-loss-counter.cc.

References m_bitMapSize, and m_receiveBitMap.

Referenced by NotifyReceived().

+ Here is the caller graph for this function:

void ns3::PacketLossCounter::SetBitMapSize ( uint16_t  size)

Definition at line 53 of file packet-loss-counter.cc.

References m_bitMapSize, m_receiveBitMap, and NS_ASSERT_MSG.

Referenced by PacketLossCounter(), and ns3::UdpServer::SetPacketWindowSize().

+ Here is the caller graph for this function:

Member Data Documentation

uint16_t ns3::PacketLossCounter::m_bitMapSize
private

Definition at line 50 of file packet-loss-counter.h.

Referenced by GetBit(), GetBitMapSize(), NotifyReceived(), SetBit(), and SetBitMapSize().

uint32_t ns3::PacketLossCounter::m_lastMaxSeqNum
private

Definition at line 51 of file packet-loss-counter.h.

Referenced by NotifyReceived().

uint32_t ns3::PacketLossCounter::m_lost
private

Definition at line 49 of file packet-loss-counter.h.

Referenced by GetLost(), and NotifyReceived().

uint8_t* ns3::PacketLossCounter::m_receiveBitMap
private

Definition at line 52 of file packet-loss-counter.h.

Referenced by GetBit(), SetBit(), SetBitMapSize(), and ~PacketLossCounter().


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