|
145 |
m_dcf = new DcaTxop::Dcf (this); |
145 |
m_dcf = new DcaTxop::Dcf (this); |
146 |
m_queue = CreateObject<WifiMacQueue> (); |
146 |
m_queue = CreateObject<WifiMacQueue> (); |
147 |
m_rng = new RealRandomStream (); |
147 |
m_rng = new RealRandomStream (); |
148 |
m_txMiddle = new MacTxMiddle (); |
|
|
149 |
} |
148 |
} |
150 |
|
149 |
|
151 |
DcaTxop::~DcaTxop () |
150 |
DcaTxop::~DcaTxop () |
|
163 |
delete m_transmissionListener; |
162 |
delete m_transmissionListener; |
164 |
delete m_dcf; |
163 |
delete m_dcf; |
165 |
delete m_rng; |
164 |
delete m_rng; |
166 |
delete m_txMiddle; |
|
|
167 |
m_transmissionListener = 0; |
165 |
m_transmissionListener = 0; |
168 |
m_dcf = 0; |
166 |
m_dcf = 0; |
169 |
m_rng = 0; |
167 |
m_rng = 0; |
|
178 |
m_manager->Add (m_dcf); |
176 |
m_manager->Add (m_dcf); |
179 |
} |
177 |
} |
180 |
|
178 |
|
|
|
179 |
void DcaTxop::SetTxMiddle (MacTxMiddle *txMiddle) |
180 |
{ |
181 |
m_txMiddle = txMiddle; |
182 |
} |
183 |
|
181 |
void |
184 |
void |
182 |
DcaTxop::SetLow (Ptr<MacLow> low) |
185 |
DcaTxop::SetLow (Ptr<MacLow> low) |
183 |
{ |
186 |
{ |