#include <AckHandler.h>
Enumerator |
---|
FRAME_NOT_YET_TRANSMITTED |
|
NO_ACK_REQUIRED |
|
WAITING_FOR_ACK |
|
ACK_NOT_ARRIVED |
|
ACK_ARRIVED |
|
32 FRAME_NOT_YET_TRANSMITTED,
virtual inet::ieee80211::AckHandler::~AckHandler |
( |
| ) |
|
|
inlinevirtual |
Implements inet::ieee80211::IAckHandler.
62 auto id = SequenceControlField(dataOrMgmtFrame->getSequenceNumber(), dataOrMgmtFrame->getFragmentNumber());
uint16_t id
Definition: TCP_NSC.cc:85
std::map< SequenceControlField, Status > ackStatuses
Definition: AckHandler.h:39
virtual Status & getAckStatus(SequenceControlField id)
Definition: AckHandler.cc:23
Status
Definition: AckHandler.h:31
35 auto id = SequenceControlField(frame->getSequenceNumber(),frame->getFragmentNumber());
uint16_t id
Definition: TCP_NSC.cc:85
std::map< SequenceControlField, Status > ackStatuses
Definition: AckHandler.h:39
int inet::ieee80211::AckHandler::getNumberOfFramesWithStatus |
( |
Status |
status | ) |
|
|
virtual |
83 if (ackStatus.second == status)
int count(const std::vector< T > &v, const T &a)
Definition: stlutils.h:58
std::map< SequenceControlField, Status > ackStatuses
Definition: AckHandler.h:39
std::string inet::ieee80211::AckHandler::getStatusString |
( |
Status |
status | ) |
|
|
protected |
void inet::ieee80211::AckHandler::printAckStatuses |
( |
| ) |
|
|
protected |
111 std::cout <<
"Seq Num = " << ackStatus.first.getSequenceNumber() <<
" " <<
"Frag Num = " << (int)ackStatus.first.getFragmentNumber() << std::endl;
112 std::cout <<
"Status = " <<
getStatusString(ackStatus.second) << std::endl;
114 std::cout <<
"=========================================" << std::endl;
std::string getStatusString(Status status)
Definition: AckHandler.cc:96
std::map< SequenceControlField, Status > ackStatuses
Definition: AckHandler.h:39
Referenced by inet::ieee80211::Dcf::originatorProcessFailedFrame().
92 auto id = SequenceControlField(dataOrMgmtFrame->getSequenceNumber(), dataOrMgmtFrame->getFragmentNumber());
uint16_t id
Definition: TCP_NSC.cc:85
std::map< SequenceControlField, Status > ackStatuses
Definition: AckHandler.h:39
virtual Status & getAckStatus(SequenceControlField id)
Definition: AckHandler.cc:23
Referenced by inet::ieee80211::Dcf::originatorProcessReceivedFrame().
46 auto id = SequenceControlField(ackedFrame->getSequenceNumber(), ackedFrame->getFragmentNumber());
49 throw cRuntimeError(
"ackedFrame = %s is not yet transmitted", ackedFrame->getName());
virtual Status & getAckStatus(SequenceControlField id)
Definition: AckHandler.cc:23
Status
Definition: AckHandler.h:31
The documentation for this class was generated from the following files: