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< SendBuffEntry > | m_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. | |
DSR send buffer.
Definition at line 116 of file dsr-rsendbuff.h.
|
inlinestaticprivate |
dst | Check if the send buffer entry is the same or not |
Definition at line 165 of file dsr-rsendbuff.h.