examples/simple-point-to-point-olsr.cc
changeset 2889 969d4f6ab9ba
parent 2888 872dc8466352
child 2890 172baa5960ff
equal deleted inserted replaced
2888:872dc8466352 2889:969d4f6ab9ba
   133   apps.Start (Seconds (1.0));
   133   apps.Start (Seconds (1.0));
   134   apps.Stop (Seconds (10.0));
   134   apps.Stop (Seconds (10.0));
   135 
   135 
   136   // Create a packet sink to receive these packets
   136   // Create a packet sink to receive these packets
   137   PacketSinkHelper sink;
   137   PacketSinkHelper sink;
   138   sink.SetupUdp (Ipv4Address::GetAny (), port);
   138   sink.SetUdpLocal (Ipv4Address::GetAny (), port);
   139   apps = sink.Install (c.Get (3));
   139   apps = sink.Install (c.Get (3));
   140   apps.Start (Seconds (1.0));
   140   apps.Start (Seconds (1.0));
   141   apps.Stop (Seconds (10.0));
   141   apps.Stop (Seconds (10.0));
   142 
   142 
   143   // Create a similar flow from n3 to n1, starting at time 1.1 seconds
   143   // Create a similar flow from n3 to n1, starting at time 1.1 seconds