--- a/examples/mixed-global-routing.cc Wed Mar 12 11:35:00 2008 -0700
+++ b/examples/mixed-global-routing.cc Thu Mar 13 11:10:38 2008 -0700
@@ -186,14 +186,12 @@
NS_LOG_INFO ("Create Applications.");
uint16_t port = 9; // Discard port (RFC 863)
Ptr<OnOffApplication> ooff =
- CreateObject<OnOffApplication> (
- "Node", n0,
- "Remote", Address (InetSocketAddress ("10.1.3.2", port)),
- "Protocol", TypeId::LookupByName ("Udp"),
- "OnTime", ConstantVariable (1),
- "OffTime", ConstantVariable (0),
- "DataRate", DataRate("300bps"),
- "PacketSize", Uinteger (50));
+ CreateObject<OnOffApplication> ("Remote", Address (InetSocketAddress ("10.1.3.2", port)),
+ "Protocol", TypeId::LookupByName ("Udp"),
+ "OnTime", ConstantVariable (1),
+ "OffTime", ConstantVariable (0),
+ "DataRate", DataRate("300bps"),
+ "PacketSize", Uinteger (50));
n0->AddApplication (ooff);
// Start the application
ooff->Start (Seconds (1.0));