examples/csma-multicast.cc
changeset 2889 969d4f6ab9ba
parent 2888 872dc8466352
child 2890 172baa5960ff
equal deleted inserted replaced
2888:872dc8466352 2889:969d4f6ab9ba
   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