examples/simple-p2p.cc
changeset 1165 618104cbd20d
parent 1164 b92649d0bf41
child 1171 335886fe4ddd
--- a/examples/simple-p2p.cc	Fri Jul 27 08:44:26 2007 +0200
+++ b/examples/simple-p2p.cc	Fri Jul 27 08:47:58 2007 +0200
@@ -143,7 +143,7 @@
   // 210 bytes at a rate of 448 Kb/s
   Ptr<OnOffApplication> ooff = Create<OnOffApplication> (
     n0, 
-    InetAddress(Ipv4Address ("10.1.3.2"), 80).ConvertTo (), 
+    InetAddress("10.1.3.2", 80).ConvertTo (), 
     "Udp",
     ConstantVariable(1), 
     ConstantVariable(0));
@@ -154,7 +154,7 @@
   // Create a similar flow from n3 to n1, starting at time 1.1 seconds
   ooff = Create<OnOffApplication> (
     n3, 
-    InetAddress(Ipv4Address ("10.1.2.1"), 80).ConvertTo (),
+    InetAddress("10.1.2.1", 80).ConvertTo (),
     "Udp",
     ConstantVariable(1), 
     ConstantVariable(0));