#include <ReceiveBuffer.h>
inet::ieee80211::ReceiveBuffer::ReceiveBuffer |
( |
int |
bufferSize, |
|
|
int |
nextExpectedSequenceNumber |
|
) |
| |
int bufferSize
Definition: ReceiveBuffer.h:38
SequenceNumber nextExpectedSequenceNumber
Definition: ReceiveBuffer.h:40
inet::ieee80211::ReceiveBuffer::~ReceiveBuffer |
( |
| ) |
|
|
virtual |
70 for (
auto fragments :
buffer) {
71 for (
auto fragment : fragments.second)
ReorderBuffer buffer
Definition: ReceiveBuffer.h:34
const ReorderBuffer& inet::ieee80211::ReceiveBuffer::getBuffer |
( |
| ) |
|
|
inline |
int inet::ieee80211::ReceiveBuffer::getBufferSize |
( |
| ) |
|
|
inline |
int inet::ieee80211::ReceiveBuffer::getLength |
( |
| ) |
|
|
inline |
int length
Definition: ReceiveBuffer.h:39
SequenceNumber inet::ieee80211::ReceiveBuffer::getNextExpectedSequenceNumber |
( |
| ) |
|
|
inline |
Referenced by inet::ieee80211::BlockAckReordering::processReceivedQoSFrame().
37 int sequenceNumber = dataFrame->getSequenceNumber();
41 auto it =
buffer.find(sequenceNumber);
43 auto &fragments = it->second;
44 fragments.push_back(dataFrame);
47 buffer[sequenceNumber].push_back(dataFrame);
ReorderBuffer buffer
Definition: ReceiveBuffer.h:34
int length
Definition: ReceiveBuffer.h:39
int bufferSize
Definition: ReceiveBuffer.h:38
SequenceNumber nextExpectedSequenceNumber
Definition: ReceiveBuffer.h:40
bool inet::ieee80211::ReceiveBuffer::isFull |
( |
| ) |
|
|
inline |
void inet::ieee80211::ReceiveBuffer::remove |
( |
int |
sequenceNumber | ) |
|
Referenced by inet::ieee80211::BlockAckReordering::passedUp().
59 auto it =
buffer.find(sequenceNumber);
61 length -= it->second.size();
62 buffer.erase(sequenceNumber);
65 throw cRuntimeError(
"Unknown sequence number = %d", sequenceNumber);
ReorderBuffer buffer
Definition: ReceiveBuffer.h:34
int length
Definition: ReceiveBuffer.h:39
void inet::ieee80211::ReceiveBuffer::setNextExpectedSequenceNumber |
( |
SequenceNumber |
nextExpectedSequenceNumber | ) |
|
|
inline |
int inet::ieee80211::ReceiveBuffer::bufferSize = -1 |
|
protected |
int inet::ieee80211::ReceiveBuffer::length = 0 |
|
protected |
SequenceNumber inet::ieee80211::ReceiveBuffer::nextExpectedSequenceNumber = -1 |
|
protected |
The documentation for this class was generated from the following files: