tutorial/tutorial-csma-echo.cc
changeset 2600 6c389d0c717d
parent 2592 3ebf97150166
child 2814 8853eda7b339
--- a/tutorial/tutorial-csma-echo.cc	Wed Mar 12 11:35:00 2008 -0700
+++ b/tutorial/tutorial-csma-echo.cc	Thu Mar 13 11:10:38 2008 -0700
@@ -68,17 +68,15 @@
   uint16_t port = 7;
 
   Ptr<UdpEchoClient> client = 
-    CreateObject<UdpEchoClient> ("Node", n0, 
-                                     "RemoteIpv4", Ipv4Address ("10.1.1.2"),
-                                     "RemotePort", Uinteger (port), 
-                                     "MaxPackets", Uinteger (1), 
-                                     "Interval", Seconds(1.), 
-                                     "PacketSize", Uinteger (1024));
+    CreateObject<UdpEchoClient> ("RemoteIpv4", Ipv4Address ("10.1.1.2"),
+                                 "RemotePort", Uinteger (port), 
+                                 "MaxPackets", Uinteger (1), 
+                                 "Interval", Seconds(1.), 
+                                 "PacketSize", Uinteger (1024));
   n0->AddApplication (client);
 
   Ptr<UdpEchoServer> server = 
-    CreateObject<UdpEchoServer> ("Node", n1, 
-                                     "Port", Uinteger (port));
+    CreateObject<UdpEchoServer> ("Port", Uinteger (port));
   n1->AddApplication (server);
 
   server->Start(Seconds(1.));