#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 |
Definition at line 36 of file packet-loss-counter.h.
ns3::PacketLossCounter::PacketLossCounter | ( | uint8_t | bitmapSize | ) |
Definition at line 32 of file packet-loss-counter.cc.
References SetBitMapSize().
ns3::PacketLossCounter::~PacketLossCounter | ( | ) |
Definition at line 41 of file packet-loss-counter.cc.
References m_receiveBitMap.
|
private |
Definition at line 73 of file packet-loss-counter.cc.
References m_bitMapSize, and m_receiveBitMap.
Referenced by NotifyReceived().
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().
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().
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().
|
private |
Definition at line 79 of file packet-loss-counter.cc.
References m_bitMapSize, and m_receiveBitMap.
Referenced by NotifyReceived().
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().
|
private |
Definition at line 50 of file packet-loss-counter.h.
Referenced by GetBit(), GetBitMapSize(), NotifyReceived(), SetBit(), and SetBitMapSize().
|
private |
Definition at line 51 of file packet-loss-counter.h.
Referenced by NotifyReceived().
|
private |
Definition at line 49 of file packet-loss-counter.h.
Referenced by GetLost(), and NotifyReceived().
|
private |
Definition at line 52 of file packet-loss-counter.h.
Referenced by GetBit(), SetBit(), SetBitMapSize(), and ~PacketLossCounter().