diff -r 83a605082fb6 -r 3ebf97150166 examples/simple-global-routing.cc --- 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 ooff = - CreateObjectWith ("Node", n0, + CreateObject ("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 sink = - CreateObjectWith ("Node", n3, + CreateObject ("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 ( + ooff = CreateObject ( "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 ("Node", n1, + sink = CreateObject ("Node", n1, "Remote", Address (InetSocketAddress (Ipv4Address::GetAny (), port)), "Protocol", TypeId::LookupByName ("Udp")); n1->AddApplication (sink);