equal
deleted
inserted
replaced
191 } |
191 } |
192 |
192 |
193 void |
193 void |
194 WifiHelper::EnableAscii (std::ostream &os, uint32_t nodeid, uint32_t deviceid) |
194 WifiHelper::EnableAscii (std::ostream &os, uint32_t nodeid, uint32_t deviceid) |
195 { |
195 { |
196 Packet::EnableMetadata (); |
196 Packet::EnablePrinting (); |
197 std::ostringstream oss; |
197 std::ostringstream oss; |
198 oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::WifiNetDevice/Phy/RxOk"; |
198 oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::WifiNetDevice/Phy/RxOk"; |
199 Config::Connect (oss.str (), MakeBoundCallback (&AsciiPhyRxOkEvent, &os)); |
199 Config::Connect (oss.str (), MakeBoundCallback (&AsciiPhyRxOkEvent, &os)); |
200 oss.str (""); |
200 oss.str (""); |
201 oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::WifiNetDevice/Phy/Tx"; |
201 oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::WifiNetDevice/Phy/Tx"; |