examples/tcp/tcp-nsc-zoo.cc
changeset 7196 0f12b1572bca
parent 7152 f20b4cae997d
child 7252 c8200621e252
--- a/examples/tcp/tcp-nsc-zoo.cc	Fri May 13 15:02:36 2011 -0400
+++ b/examples/tcp/tcp-nsc-zoo.cc	Fri May 13 15:35:31 2011 -0400
@@ -57,8 +57,8 @@
 
   if (MaxNodes < 2)
     {
-       std::cerr << "--nodes: must be >= 2" << std::endl;
-       return 1;
+      std::cerr << "--nodes: must be >= 2" << std::endl;
+      return 1;
     }
   csma.SetChannelAttribute ("DataRate", DataRateValue (DataRate(100 * 1000 * 1000)));
   csma.SetChannelAttribute ("Delay", TimeValue (MicroSeconds (200)));
@@ -115,24 +115,24 @@
   sinkApp.Stop (Seconds (30.0));
 
   // This tells every node on the network to start a flow to all other nodes on the network ...
-  for (unsigned int i = 0 ; i < MaxNodes;i++)
+  for (unsigned int i = 0 ; i < MaxNodes; i++)
     {
-      for (unsigned int j = 0 ; j < MaxNodes;j++)
+      for (unsigned int j = 0 ; j < MaxNodes; j++)
         {
           if (i == j)
             {  // ...but we don't want a node to talk to itself.
-               continue;
+              continue;
             }
           Address remoteAddress(InetSocketAddress(ipv4Interfaces.GetAddress (j), servPort));
           OnOffHelper clientHelper ("ns3::TcpSocketFactory", remoteAddress);
           clientHelper.SetAttribute 
-            ("OnTime", RandomVariableValue (ConstantVariable (1)));
+                  ("OnTime", RandomVariableValue (ConstantVariable (1)));
           clientHelper.SetAttribute 
-            ("OffTime", RandomVariableValue (ConstantVariable (0)));
+                  ("OffTime", RandomVariableValue (ConstantVariable (0)));
           ApplicationContainer clientApp = clientHelper.Install(n.Get(i));
           clientApp.Start (Seconds (j)); /* delay startup depending on node number */
           clientApp.Stop (Seconds (j + runtime));
-	}
+        }
     }
 
   csma.EnablePcapAll ("tcp-nsc-zoo", false);