examples/tcp/star.cc
changeset 8966 060dba23e9bb
parent 7256 b04ba6772f8c
--- a/examples/tcp/star.cc	Mon Aug 13 10:46:09 2012 -0700
+++ b/examples/tcp/star.cc	Mon Aug 13 16:08:13 2012 -0700
@@ -88,8 +88,8 @@
   // Create OnOff applications to send TCP to the hub, one on each spoke node.
   //
   OnOffHelper onOffHelper ("ns3::TcpSocketFactory", Address ());
-  onOffHelper.SetAttribute ("OnTime", RandomVariableValue (ConstantVariable (1)));
-  onOffHelper.SetAttribute ("OffTime", RandomVariableValue (ConstantVariable (0)));
+  onOffHelper.SetAttribute ("OnTime", StringValue ("ns3::ConstantRandomVariable[Constant=1]"));
+  onOffHelper.SetAttribute ("OffTime", StringValue ("ns3::ConstantRandomVariable[Constant=0]"));
 
   ApplicationContainer spokeApps;