A Discrete-Event Network Simulator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::dsr::SendBuffer Class Reference

DSR send buffer. More...

#include <dsr-rsendbuff.h>

Public Member Functions

bool Dequeue (Ipv4Address dst, SendBuffEntry &entry)
void DropPacketWithDst (Ipv4Address dst)
bool Enqueue (SendBuffEntry &entry)
bool Find (Ipv4Address dst)
std::vector< SendBuffEntry > & GetBuffer ()
uint32_t GetSize ()
uint32_t GetMaxQueueLen () const
void SetMaxQueueLen (uint32_t len)
Time GetSendBufferTimeout () const
void SetSendBufferTimeout (Time t)

Private Member Functions

void Drop (SendBuffEntry en, std::string reason)
 Notify that packet is dropped from queue by timeout.
void Purge ()
 Remove all expired entries.

Static Private Member Functions

static bool IsEqual (SendBuffEntry en, const Ipv4Address dst)

Private Attributes

uint32_t m_maxLen
 The maximum number of packets that we allow a routing protocol to buffer.
std::vector< SendBuffEntrym_sendBuffer
 The send buffer to cache unsent packet.
Time m_sendBufferTimeout
 The maximum period of time that a routing protocol is allowed to buffer a packet for, seconds.

Detailed Description

DSR send buffer.

Definition at line 116 of file dsr-rsendbuff.h.

Member Function Documentation

static bool ns3::dsr::SendBuffer::IsEqual ( SendBuffEntry  en,
const Ipv4Address  dst 
dstCheck if the send buffer entry is the same or not

Definition at line 165 of file dsr-rsendbuff.h.

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