--- a/examples/simple-global-routing.cc Sat May 17 11:15:02 2008 -0700
+++ b/examples/simple-global-routing.cc Sat May 17 12:08:20 2008 -0700
@@ -122,7 +122,7 @@
// 210 bytes at a rate of 448 Kb/s
NS_LOG_INFO ("Create Applications.");
uint16_t port = 9; // Discard port (RFC 863)
- OnOffHelper onoff ("ns3::Udp",
+ OnOffHelper onoff ("ns3::UdpSocketFactory",
Address (InetSocketAddress (i3i2.GetAddress (0), port)));
onoff.SetAttribute ("OnTime", RandomVariableValue (ConstantVariable (1)));
onoff.SetAttribute ("OffTime", RandomVariableValue (ConstantVariable (0)));
@@ -131,7 +131,7 @@
apps.Stop (Seconds (10.0));
// Create a packet sink to receive these packets
- PacketSinkHelper sink ("ns3::Udp",
+ PacketSinkHelper sink ("ns3::UdpSocketFactory",
Address (InetSocketAddress (Ipv4Address::GetAny (), port)));
apps = sink.Install (c.Get (3));
apps.Start (Seconds (1.0));