examples/simple-alternate-routing.cc
changeset 2592 3ebf97150166
parent 2577 5b41cb5c3fcf
child 2600 6c389d0c717d
--- a/examples/simple-alternate-routing.cc	Tue Mar 11 11:35:26 2008 -0700
+++ b/examples/simple-alternate-routing.cc	Tue Mar 11 13:30:12 2008 -0700
@@ -183,7 +183,7 @@
 
   // Create a flow from n3 to n1, starting at time 1.1 seconds
   Ptr<OnOffApplication> ooff = 
-    CreateObjectWith<OnOffApplication> (
+    CreateObject<OnOffApplication> (
                                         "Node", n3, 
                                         "Remote", Address (InetSocketAddress ("10.1.1.1", port)),
                                         "Protocol", TypeId::LookupByName ("Udp"),
@@ -196,7 +196,7 @@
 
   // Create a packet sink to receive these packets
   Ptr<PacketSink> sink = 
-    CreateObjectWith<PacketSink> (
+    CreateObject<PacketSink> (
                                   "Node", n1, 
                                   "Remote", Address (InetSocketAddress (Ipv4Address::GetAny (), port)), 
                                   "Protocol", TypeId::LookupByName ("Udp"));