tutorial/tutorial-bus-network.cc
changeset 2600 6c389d0c717d
parent 2592 3ebf97150166
child 2811 80ad195c1770
--- a/tutorial/tutorial-bus-network.cc	Wed Mar 12 11:35:00 2008 -0700
+++ b/tutorial/tutorial-bus-network.cc	Thu Mar 13 11:10:38 2008 -0700
@@ -44,17 +44,16 @@
 
   Ptr<Node> n0 = bus.GetNode (0);
   Ptr<UdpEchoClient> client =  
-    CreateObject<UdpEchoClient> ("Node", n0, 
-				     "RemoteIpv4", Ipv4Address ("10.1.0.1"),
-				     "RemotePort", Uinteger (port),
-				     "MaxPackets", Uinteger (1), 
-				     "Interval", Seconds(1.), 
-				     "PacketSize", Uinteger (1024));
+    CreateObject<UdpEchoClient> ("RemoteIpv4", Ipv4Address ("10.1.0.1"),
+				 "RemotePort", Uinteger (port),
+				 "MaxPackets", Uinteger (1), 
+				 "Interval", Seconds(1.), 
+				 "PacketSize", Uinteger (1024));
   n0->AddApplication (client);
 
   Ptr<Node> n1 = bus.GetNode (1);
   Ptr<UdpEchoServer> server = 
-    CreateObject<UdpEchoServer> ("Node", n1, "Port", Uinteger (port));
+    CreateObject<UdpEchoServer> ("Port", Uinteger (port));
   n1->AddApplication (server);
 
   server->Start(Seconds(1.));