equal
deleted
inserted
replaced
155 srcC.Start(Seconds(1.)); |
155 srcC.Start(Seconds(1.)); |
156 srcC.Stop (Seconds(10.)); |
156 srcC.Stop (Seconds(10.)); |
157 |
157 |
158 // Create an optional packet sink to receive these packets |
158 // Create an optional packet sink to receive these packets |
159 PacketSinkHelper sink; |
159 PacketSinkHelper sink; |
160 sink.SetupUdp (Ipv4Address::GetAny(), multicastPort); |
160 sink.SetUdpLocal (Ipv4Address::GetAny(), multicastPort); |
161 ApplicationContainer sinkC = sink.Install (c1.Get (2)); // Node n4 |
161 ApplicationContainer sinkC = sink.Install (c1.Get (2)); // Node n4 |
162 // Start the sink |
162 // Start the sink |
163 sinkC.Start (Seconds (1.0)); |
163 sinkC.Start (Seconds (1.0)); |
164 sinkC.Stop (Seconds (10.0)); |
164 sinkC.Stop (Seconds (10.0)); |
165 |
165 |