--- a/examples/tcp/tcp-nsc-lfn.cc Mon Aug 13 10:46:09 2012 -0700
+++ b/examples/tcp/tcp-nsc-lfn.cc Mon Aug 13 16:08:13 2012 -0700
@@ -125,8 +125,8 @@
{
Address remoteAddress (InetSocketAddress (ipv4Interfaces.GetAddress (i), servPort));
OnOffHelper clientHelper ("ns3::TcpSocketFactory", remoteAddress);
- clientHelper.SetAttribute ("OnTime", RandomVariableValue (ConstantVariable (1)));
- clientHelper.SetAttribute ("OffTime", RandomVariableValue (ConstantVariable (0)));
+ clientHelper.SetAttribute ("OnTime", StringValue ("ns3::ConstantRandomVariable[Constant=1]"));
+ clientHelper.SetAttribute ("OffTime", StringValue ("ns3::ConstantRandomVariable[Constant=0]"));
ApplicationContainer clientApp = clientHelper.Install (n.Get (j));
clientApp.Start (Seconds (1.0 + i));
clientApp.Stop (Seconds (runtime + 1.0 + i));