equal
deleted
inserted
replaced
120 } |
120 } |
121 |
121 |
122 void |
122 void |
123 CsmaHelper::EnableAscii (std::ostream &os, uint32_t nodeid, uint32_t deviceid) |
123 CsmaHelper::EnableAscii (std::ostream &os, uint32_t nodeid, uint32_t deviceid) |
124 { |
124 { |
125 Packet::EnableMetadata (); |
125 Packet::EnablePrinting (); |
126 std::ostringstream oss; |
126 std::ostringstream oss; |
127 oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::CsmaNetDevice/Rx"; |
127 oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::CsmaNetDevice/Rx"; |
128 Config::Connect (oss.str (), MakeBoundCallback (&CsmaHelper::AsciiRxEvent, &os)); |
128 Config::Connect (oss.str (), MakeBoundCallback (&CsmaHelper::AsciiRxEvent, &os)); |
129 oss.str (""); |
129 oss.str (""); |
130 oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::CsmaNetDevice/TxQueue/Enqueue"; |
130 oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::CsmaNetDevice/TxQueue/Enqueue"; |