<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">I got this piece of code exactly from the ns3 ad-hoc example in this link</div><div class=""><br class=""></div><div class=""><a href="https://www.nsnam.org/docs/models/html/wifi-user.html#adhoc-wifinetdevice-configuration" class="">https://www.nsnam.org/docs/models/html/wifi-user.html#adhoc-wifinetdevice-configuration</a></div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 26, 2017, at 11:47 PM, Spyridon (Spyros) Mastorakis <<a href="mailto:mastorakis@CS.UCLA.EDU" class="">mastorakis@CS.UCLA.EDU</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">this error tells you that the WifiMacHelper class has pure virtual member functions, therefore, you cannot declare a variable like that.</div><div class=""><br class=""></div><div class="">I would suggest you take a look at this C++ tutorial on abstract classes:</div><div class=""><br class=""></div><div class=""><a href="https://www.tutorialspoint.com/cplusplus/cpp_interfaces.htm" class="">https://www.tutorialspoint.com/cplusplus/cpp_interfaces.htm</a></div><div class=""><br class=""></div><div class="">Hope that this helps,</div><div class=""><br class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div><div class=""><br class=""></div></div></div></div><div class=""><blockquote type="cite" class=""><div class="">On Jul 26, 2017, at 8:33 PM, Marzieh Babaeianjelodar <<a href="mailto:babaeim@clarkson.edu" class="">babaeim@clarkson.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">I replaced the code for setting-up ad-hoc nodes in ndn-simple-wifi scenario but I get some errors about the scope. Is there any type of library required that I should include?</div><div class=""><br class=""></div><div class="">my errors:</div><div class=""><br class=""></div><div class="">marzieh@marzieh-VirtualBox:~/ndnSIM/ns-3$ ./waf --run=ad-hoc-marzieh --vis<br class="">Waf: Entering directory `/home/marzieh/ndnSIM/ns-3/build'<br class="">[2358/2949] Compiling src/ndnSIM/examples/ad-hoc-marzieh.cpp<br class="">../src/ndnSIM/examples/ad-hoc-marzieh.cpp: In function ‘int ns3::main(int, char**)’:<br class="">../src/ndnSIM/examples/ad-hoc-marzieh.cpp:44:17: error: cannot declare variable ‘wifiMac’ to be of abstract type ‘ns3::WifiMacHelper’<br class="">   WifiMacHelper wifiMac;<br class="">                 ^~~~~~~<br class="">In file included from ./ns3/ht-wifi-mac-helper.h:24:0,<br class="">                 from ./ns3/wifi-module.h:35,<br class="">                 from ../src/ndnSIM/examples/ad-hoc-marzieh.cpp:4:<br class="">./ns3/wifi-helper.h:75:7: note:   because the following virtual functions are pure within ‘ns3::WifiMacHelper’:<br class=""> class WifiMacHelper<br class="">       ^~~~~~~~~~~~~<br class="">./ns3/wifi-helper.h:85:24: note:     virtual ns3::Ptr<ns3::WifiMac> ns3::WifiMacHelper::Create() const<br class="">   virtual Ptr<WifiMac> Create (void) const = 0;<br class="">                        ^~~~~~<br class="">../src/ndnSIM/examples/ad-hoc-marzieh.cpp:47:11: error: ‘class ns3::WifiMacHelper’ has no member named ‘SetType’<br class="">   wifiMac.SetType ("ns3::AdhocWifiMac");<br class="">           ^~~~~~~</div><div class=""><br class=""></div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jul 26, 2017, at 10:21 PM, Marzieh Babaeianjelodar <<a href="mailto:babaeim@clarkson.edu" class="">babaeim@clarkson.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi Junxiao,</div><div class=""><br class=""></div><div class="">I was wondering how to configure my scenario to ad-hoc? I used the ndn-simple-wifi and added waypoints to my scenario.</div><div class=""><br class=""></div><div class="">Best Regards,</div><div class="">Marzieh</div><div class=""><br class=""></div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jul 24, 2017, at 3:04 PM, Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" class="">shijunxiao@email.arizona.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="auto" class=""><div class="">Hi Marzieh</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Can you confirm the producer node and producer app has <b class="">received the Interest</b>?</div><div dir="auto" class="">If the Interest isn't received, it obviously won't reply with Data.</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Interest forwarding requires FIB entries.</div><div dir="auto" class="">Additionally, if this scenario is wireless, node 1 and node 2 either needs to have its wireless interface configured as "ad hoc wireless" rather than "broadcast" mode, or use two separate interfaces to associate with the left neighbor and the right neighbor. It is much easier to wired links.</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Yours, Junxiao<br class=""><div class="gmail_extra" dir="auto"><br class=""><div class="gmail_quote">On Jul 24, 2017 11:58, "Marzieh Babaeianjelodar" <<a href="mailto:babaeim@clarkson.edu" class="">babaeim@clarkson.edu</a>> wrote:<br type="attribution" class=""><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">Yes, I mean it is not replying with a data when it is some hops away. Why isn't it replying with a data?</div><div class=""><br class=""></div><div class="">I got those results by the NS_LOG command.</div><div class="quoted-text"><br class=""></div></div></blockquote></div></div></div></div>
</div></blockquote></div><br class=""></div></div></blockquote></div></div><br class=""></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></body></html>