|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
21 #ifndef BLOCK_ACK_AGREEMENT_H
22 #define BLOCK_ACK_AGREEMENT_H
24 #include "ns3/mac48-address.h"
25 #include "ns3/event-id.h"
89 uint8_t
GetTid (
void)
const;
173 static std::size_t
GetDistance (uint16_t seqNumber, uint16_t startingSeqNumber);
uint8_t GetTid(void) const
Return the Traffic ID (TID).
void SetHtSupported(bool htSupported)
Enable or disable HT support.
BlockAckAgreement(Mac48Address peer, uint8_t tid)
Constructor for BlockAckAgreement with given peer and TID.
uint16_t m_bufferSize
Buffer size.
An identifier for simulation events.
uint8_t m_amsduSupported
Flag whether MSDU aggregation is supported.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint16_t m_startingSeq
Starting sequence control.
uint16_t m_timeout
Timeout.
BlockAckReqType GetBlockAckReqType(void) const
Get the type of the Block Ack Requests sent by the originator of this agreement.
void SetImmediateBlockAck(void)
Set block ack policy to immediate Ack.
Maintains information for a block ack agreement.
uint16_t GetTimeout(void) const
Return the timeout.
uint16_t m_winEnd
Ending sequence number.
HtFrameExchangeManager handles the frame exchange sequences for HT stations.
The different BlockAckRequest variants.
uint8_t m_blockAckPolicy
Type of block ack: immediate or delayed.
Mac48Address GetPeer(void) const
Return the peer address.
The different BlockAck variants.
uint16_t GetWinEnd(void) const
Return the last sequence number covered by the ack window.
Mac48Address m_peer
Peer address.
virtual ~BlockAckAgreement()
bool IsAmsduSupported(void) const
Check whether A-MSDU is supported.
void SetStartingSequence(uint16_t seq)
Set starting sequence number.
void SetAmsduSupport(bool supported)
Enable or disable A-MSDU support.
bool IsHtSupported(void) const
Check whether HT is supported.
virtual uint16_t GetStartingSequence(void) const
Return the starting sequence number.
bool IsImmediateBlockAck(void) const
Check whether the current ack policy is immediate BlockAck.
uint16_t GetBufferSize(void) const
Return the buffer size.
void SetDelayedBlockAck(void)
Set block ack policy to delayed Ack.
EventId m_inactivityEvent
inactivity event
uint16_t GetStartingSequenceControl(void) const
Return the starting sequence control.
uint8_t m_htSupported
Flag whether HT is supported.
void SetTimeout(uint16_t timeout)
Set timeout.
BlockAckType GetBlockAckType(void) const
Get the type of the Block Acks sent by the recipient of this agreement.
void SetStartingSequenceControl(uint16_t seq)
Set starting sequence control.
static std::size_t GetDistance(uint16_t seqNumber, uint16_t startingSeqNumber)
Get the distance between the given starting sequence number and the given sequence number.
void SetBufferSize(uint16_t bufferSize)
Set buffer size.