examples/simple-p2p.cc
changeset 516 3d330150ab6d
parent 503 38f16e0e5513
child 519 b045a3ab4595
--- a/examples/simple-p2p.cc	Thu May 03 13:11:50 2007 +0200
+++ b/examples/simple-p2p.cc	Thu May 03 13:17:29 2007 +0200
@@ -126,7 +126,7 @@
     DataRate(448000), 
     210);
   // Add to Node's ApplicationList (takes ownership of pointer)
-  ApplicationList *apl0 = n0->GetApplicationList();
+  ApplicationList *apl0 = n0->QueryInterface<ApplicationList> (ApplicationList::iid);
   apl0->Add(ooff0);
   apl0->Unref ();
   // Start the application
@@ -144,7 +144,7 @@
     DataRate(448000), 
     210);
   // Add to Node's ApplicationList (takes ownership of pointer)
-  ApplicationList *apl3 = n3->GetApplicationList();
+  ApplicationList *apl3 = n3->QueryInterface<ApplicationList> (ApplicationList::iid);
   apl3->Add(ooff1);
   apl3->Unref ();
   // Start the application