examples/simple-global-routing.cc
changeset 2592 3ebf97150166
parent 2577 5b41cb5c3fcf
child 2600 6c389d0c717d
--- a/examples/simple-global-routing.cc	Tue Mar 11 11:35:26 2008 -0700
+++ b/examples/simple-global-routing.cc	Tue Mar 11 13:30:12 2008 -0700
@@ -160,7 +160,7 @@
   NS_LOG_INFO ("Create Applications.");
   uint16_t port = 9;   // Discard port (RFC 863)
   Ptr<OnOffApplication> ooff = 
-    CreateObjectWith<OnOffApplication> ("Node", n0, 
+    CreateObject<OnOffApplication> ("Node", n0, 
                                         "Remote", Address (InetSocketAddress ("10.1.3.2", port)), 
                                         "Protocol", TypeId::LookupByName ("Udp"),
                                         "OnTime", ConstantVariable (1), 
@@ -173,7 +173,7 @@
   // Create a packet sink to receive these packets
   // The last argument "true" disables output from the Receive callback
   Ptr<PacketSink> sink = 
-    CreateObjectWith<PacketSink> ("Node", n3, 
+    CreateObject<PacketSink> ("Node", n3, 
                                   "Remote", Address (InetSocketAddress (Ipv4Address::GetAny (), port)),
                                   "Protocol", TypeId::LookupByName ("Udp"));
   n3->AddApplication (sink);
@@ -182,7 +182,7 @@
   sink->Stop (Seconds (10.0));
 
   // Create a similar flow from n3 to n1, starting at time 1.1 seconds
-  ooff = CreateObjectWith<OnOffApplication> (
+  ooff = CreateObject<OnOffApplication> (
                                              "Node", n3, 
                                              "Remote", Address (InetSocketAddress ("10.1.2.1", port)),
                                              "Protocol", TypeId::LookupByName ("Udp"),
@@ -194,7 +194,7 @@
   ooff->Stop (Seconds (10.0));
 
   // Create a packet sink to receive these packets
-  sink = CreateObjectWith<PacketSink> ("Node", n1,
+  sink = CreateObject<PacketSink> ("Node", n1,
                                        "Remote", Address (InetSocketAddress (Ipv4Address::GetAny (), port)), 
                                        "Protocol", TypeId::LookupByName ("Udp"));
   n1->AddApplication (sink);