samples/main-adhoc-wifi.cc
changeset 2600 6c389d0c717d
parent 2592 3ebf97150166
child 2602 d9262bff6df2
--- a/samples/main-adhoc-wifi.cc	Wed Mar 12 11:35:00 2008 -0700
+++ b/samples/main-adhoc-wifi.cc	Thu Mar 13 11:10:38 2008 -0700
@@ -149,13 +149,12 @@
   destination.SetSingleDevice (0);
   destination.SetPhysicalAddress (devices.Get (1)->GetAddress ());
   Ptr<Application> app = 
-    CreateObject<OnOffApplication> ("Node", c.Get (0), 
-                                        "Remote", Address (destination),
-                                        "Protocol", TypeId::LookupByName ("Packet"),
-                                        "OnTime", ConstantVariable (250),
-                                        "OffTime", ConstantVariable (0),
-                                        "DataRate", DataRate (60000000),
-                                        "PacketSize", Uinteger (2000));
+    CreateObject<OnOffApplication> ("Remote", Address (destination),
+                                    "Protocol", TypeId::LookupByName ("Packet"),
+                                    "OnTime", ConstantVariable (250),
+                                    "OffTime", ConstantVariable (0),
+                                    "DataRate", DataRate (60000000),
+                                    "PacketSize", Uinteger (2000));
   c.Get (0)->AddApplication (app);
 
   app->Start (Seconds (0.5));