equal
deleted
inserted
replaced
124 continue; |
124 continue; |
125 } |
125 } |
126 Address remoteAddress (InetSocketAddress (ipv4Interfaces.GetAddress (j), servPort)); |
126 Address remoteAddress (InetSocketAddress (ipv4Interfaces.GetAddress (j), servPort)); |
127 OnOffHelper clientHelper ("ns3::TcpSocketFactory", remoteAddress); |
127 OnOffHelper clientHelper ("ns3::TcpSocketFactory", remoteAddress); |
128 clientHelper.SetAttribute |
128 clientHelper.SetAttribute |
129 ("OnTime", RandomVariableValue (ConstantVariable (1))); |
129 ("OnTime", StringValue ("ns3::ConstantRandomVariable[Constant=1]")); |
130 clientHelper.SetAttribute |
130 clientHelper.SetAttribute |
131 ("OffTime", RandomVariableValue (ConstantVariable (0))); |
131 ("OffTime", StringValue ("ns3::ConstantRandomVariable[Constant=0]")); |
132 ApplicationContainer clientApp = clientHelper.Install (n.Get (i)); |
132 ApplicationContainer clientApp = clientHelper.Install (n.Get (i)); |
133 clientApp.Start (Seconds (j)); /* delay startup depending on node number */ |
133 clientApp.Start (Seconds (j)); /* delay startup depending on node number */ |
134 clientApp.Stop (Seconds (j + runtime)); |
134 clientApp.Stop (Seconds (j + runtime)); |
135 } |
135 } |
136 } |
136 } |