|
|
| 80 |
* packet transmission was failed. |
80 |
* packet transmission was failed. |
| 81 |
*/ |
81 |
*/ |
| 82 |
typedef Callback <void, const WifiMacHeader&> TxFailed; |
82 |
typedef Callback <void, const WifiMacHeader&> TxFailed; |
|
|
83 |
/** |
| 84 |
* typedef for a callback to invoke when a |
| 85 |
* packet is dropped. |
| 86 |
*/ |
| 87 |
typedef Callback <void, Ptr<const Packet> > TxDropped; |
| 83 |
|
88 |
|
| 84 |
/** |
89 |
/** |
| 85 |
* Check for EDCA. |
90 |
* Check for EDCA. |
|
|
| 123 |
* packet transmission was completed unsuccessfully. |
128 |
* packet transmission was completed unsuccessfully. |
| 124 |
*/ |
129 |
*/ |
| 125 |
void SetTxFailedCallback (TxFailed callback); |
130 |
void SetTxFailedCallback (TxFailed callback); |
|
|
131 |
/** |
| 132 |
* \param callback the callback to invoke when a |
| 133 |
* packet is dropped. |
| 134 |
*/ |
| 135 |
void SetTxDroppedCallback (TxDropped callback); |
| 126 |
|
136 |
|
| 127 |
/** |
137 |
/** |
| 128 |
* Return the MacLow associated with this DcaTxop. |
138 |
* Return the MacLow associated with this DcaTxop. |
|
|
| 382 |
* false otherwise. |
392 |
* false otherwise. |
| 383 |
*/ |
393 |
*/ |
| 384 |
virtual bool IsLastFragment (void) const; |
394 |
virtual bool IsLastFragment (void) const; |
|
|
395 |
/** |
| 396 |
* |
| 397 |
* Pass the packet included in the wifi MAC queue item to the |
| 398 |
* packet dropped callback. |
| 399 |
* |
| 400 |
* \param item the wifi MAC queue item. |
| 401 |
*/ |
| 402 |
void TxDroppedCallback (Ptr<const WifiMacQueueItem> item); |
| 385 |
|
403 |
|
| 386 |
DcfState *m_dcf; //!< the DCF state |
404 |
DcfState *m_dcf; //!< the DCF state |
| 387 |
DcfManager *m_manager; //!< the DCF manager |
405 |
DcfManager *m_manager; //!< the DCF manager |
| 388 |
TxOk m_txOkCallback; //!< the transmit OK callback |
406 |
TxOk m_txOkCallback; //!< the transmit OK callback |
| 389 |
TxFailed m_txFailedCallback; //!< the transmit failed callback |
407 |
TxFailed m_txFailedCallback; //!< the transmit failed callback |
|
|
408 |
TxDropped m_txDroppedCallback; //!< the packet dropped callback |
| 390 |
Ptr<WifiMacQueue> m_queue; //!< the wifi MAC queue |
409 |
Ptr<WifiMacQueue> m_queue; //!< the wifi MAC queue |
| 391 |
MacTxMiddle *m_txMiddle; //!< the MacTxMiddle |
410 |
MacTxMiddle *m_txMiddle; //!< the MacTxMiddle |
| 392 |
Ptr <MacLow> m_low; //!< the MacLow |
411 |
Ptr <MacLow> m_low; //!< the MacLow |