184 // Create the OnOff application to send UDP datagrams of size |
184 // Create the OnOff application to send UDP datagrams of size |
185 // 210 bytes at a rate of 448 Kb/s |
185 // 210 bytes at a rate of 448 Kb/s |
186 NS_LOG_INFO ("Create Applications."); |
186 NS_LOG_INFO ("Create Applications."); |
187 uint16_t port = 9; // Discard port (RFC 863) |
187 uint16_t port = 9; // Discard port (RFC 863) |
188 Ptr<OnOffApplication> ooff = |
188 Ptr<OnOffApplication> ooff = |
189 CreateObjectWith<OnOffApplication> ( |
189 CreateObject<OnOffApplication> ( |
190 "Node", n0, |
190 "Node", n0, |
191 "Remote", Address (InetSocketAddress ("10.1.3.2", port)), |
191 "Remote", Address (InetSocketAddress ("10.1.3.2", port)), |
192 "Protocol", TypeId::LookupByName ("Udp"), |
192 "Protocol", TypeId::LookupByName ("Udp"), |
193 "OnTime", ConstantVariable (1), |
193 "OnTime", ConstantVariable (1), |
194 "OffTime", ConstantVariable (0), |
194 "OffTime", ConstantVariable (0), |