A Discrete-Event Network Simulator
API
ns3::DcaTxop::TransmissionListener Class Reference

Listener for MacLow events. More...

+ Inheritance diagram for ns3::DcaTxop::TransmissionListener:
+ Collaboration diagram for ns3::DcaTxop::TransmissionListener:

Public Member Functions

 TransmissionListener (DcaTxop *txop)
 Create a TransmissionListener for the given DcaTxop. More...
 
virtual ~TransmissionListener ()
 
virtual void Cancel (void)
 Invoked if this transmission was canceled one way or another. More...
 
virtual void EndTxNoAck (void)
 Invoked upon the end of the transmission of a frame that does not require an ACK (e.g., broadcast and multicast frames). More...
 
virtual void GotAck (double snr, WifiMode txMode)
 
virtual void GotCts (double snr, WifiMode txMode)
 
virtual void MissedAck (void)
 ns3::MacLow did not receive an expected ACK within AckTimeout. More...
 
virtual void MissedCts (void)
 ns3::MacLow did not receive an expected CTS within CtsTimeout. More...
 
virtual void StartNext (void)
 Invoked when ns3::MacLow wants to continue the TXOP. More...
 
virtual void StartNextFragment (void)
 Invoked when ns3::MacLow wants to start a new transmission as configured by MacLowTransmissionParameters::EnableNextData. More...
 
- Public Member Functions inherited from ns3::MacLowTransmissionListener
 MacLowTransmissionListener ()
 
virtual ~MacLowTransmissionListener ()
 
virtual void GotBlockAck (const CtrlBAckResponseHeader *blockAck, Mac48Address source, double rxSnr, WifiMode txMode, double dataSnr)
 
virtual void MissedBlockAck (uint32_t nMpdus)
 

Private Attributes

DcaTxopm_txop
 

Detailed Description

Listener for MacLow events.

Forwards to DcaTxop.

Definition at line 88 of file dca-txop.cc.

Constructor & Destructor Documentation

ns3::DcaTxop::TransmissionListener::TransmissionListener ( DcaTxop txop)
inline

Create a TransmissionListener for the given DcaTxop.

Parameters
txop

Definition at line 96 of file dca-txop.cc.

virtual ns3::DcaTxop::TransmissionListener::~TransmissionListener ( )
inlinevirtual

Definition at line 102 of file dca-txop.cc.

Member Function Documentation

virtual void ns3::DcaTxop::TransmissionListener::Cancel ( void  )
inlinevirtual

Invoked if this transmission was canceled one way or another.

When this method is invoked, you can assume that the packet has not been passed down the stack to the PHY.

Implements ns3::MacLowTransmissionListener.

Definition at line 129 of file dca-txop.cc.

References ns3::DcaTxop::Cancel(), and m_txop.

+ Here is the call graph for this function:

virtual void ns3::DcaTxop::TransmissionListener::EndTxNoAck ( void  )
inlinevirtual

Invoked upon the end of the transmission of a frame that does not require an ACK (e.g., broadcast and multicast frames).

Implements ns3::MacLowTransmissionListener.

Definition at line 133 of file dca-txop.cc.

References ns3::DcaTxop::EndTxNoAck(), and m_txop.

+ Here is the call graph for this function:

virtual void ns3::DcaTxop::TransmissionListener::GotAck ( double  snr,
WifiMode  txMode 
)
inlinevirtual
Parameters
snrthe snr of the ack
txModethe transmission mode of the ack

ns3::MacLow received an expected ACK within AckTimeout. The snr and txMode arguments are not valid when SUPER_FAST_ACK is used.

Implements ns3::MacLowTransmissionListener.

Definition at line 114 of file dca-txop.cc.

References ns3::DcaTxop::GotAck(), and m_txop.

+ Here is the call graph for this function:

virtual void ns3::DcaTxop::TransmissionListener::GotCts ( double  snr,
WifiMode  txMode 
)
inlinevirtual
Parameters
snrthe snr of the cts
txModethe txMode of the cts

ns3::MacLow received an expected CTS within CtsTimeout.

Implements ns3::MacLowTransmissionListener.

Definition at line 106 of file dca-txop.cc.

References ns3::DcaTxop::GotCts(), and m_txop.

+ Here is the call graph for this function:

virtual void ns3::DcaTxop::TransmissionListener::MissedAck ( void  )
inlinevirtual

ns3::MacLow did not receive an expected ACK within AckTimeout.

Implements ns3::MacLowTransmissionListener.

Definition at line 118 of file dca-txop.cc.

References m_txop, and ns3::DcaTxop::MissedAck().

+ Here is the call graph for this function:

virtual void ns3::DcaTxop::TransmissionListener::MissedCts ( void  )
inlinevirtual

ns3::MacLow did not receive an expected CTS within CtsTimeout.

Implements ns3::MacLowTransmissionListener.

Definition at line 110 of file dca-txop.cc.

References m_txop, and ns3::DcaTxop::MissedCts().

+ Here is the call graph for this function:

virtual void ns3::DcaTxop::TransmissionListener::StartNext ( void  )
inlinevirtual

Invoked when ns3::MacLow wants to continue the TXOP.

The listener is expected to call again MacLow::StartTransmission with the "next" packet to send.

Implements ns3::MacLowTransmissionListener.

Definition at line 126 of file dca-txop.cc.

virtual void ns3::DcaTxop::TransmissionListener::StartNextFragment ( void  )
inlinevirtual

Invoked when ns3::MacLow wants to start a new transmission as configured by MacLowTransmissionParameters::EnableNextData.

The listener is expected to call again MacLow::StartTransmission with the "next" fragment to send.

Implements ns3::MacLowTransmissionListener.

Definition at line 122 of file dca-txop.cc.

References m_txop, and ns3::DcaTxop::StartNextFragment().

+ Here is the call graph for this function:

Member Data Documentation

DcaTxop* ns3::DcaTxop::TransmissionListener::m_txop
private

Definition at line 139 of file dca-txop.cc.

Referenced by Cancel(), EndTxNoAck(), GotAck(), GotCts(), MissedAck(), MissedCts(), and StartNextFragment().


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