examples/tcp/tcp-nsc-zoo.cc
changeset 8966 060dba23e9bb
parent 7256 b04ba6772f8c
--- a/examples/tcp/tcp-nsc-zoo.cc	Mon Aug 13 10:46:09 2012 -0700
+++ b/examples/tcp/tcp-nsc-zoo.cc	Mon Aug 13 16:08:13 2012 -0700
@@ -126,9 +126,9 @@
           Address remoteAddress (InetSocketAddress (ipv4Interfaces.GetAddress (j), servPort));
           OnOffHelper clientHelper ("ns3::TcpSocketFactory", remoteAddress);
           clientHelper.SetAttribute 
-            ("OnTime", RandomVariableValue (ConstantVariable (1)));
+            ("OnTime", StringValue ("ns3::ConstantRandomVariable[Constant=1]"));
           clientHelper.SetAttribute 
-            ("OffTime", RandomVariableValue (ConstantVariable (0)));
+            ("OffTime", StringValue ("ns3::ConstantRandomVariable[Constant=0]"));
           ApplicationContainer clientApp = clientHelper.Install (n.Get (i));
           clientApp.Start (Seconds (j)); /* delay startup depending on node number */
           clientApp.Stop (Seconds (j + runtime));