<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi there,<div class=""><br class=""></div><div class="">why you do not enable the logging component of the consumer and producer application?</div><div class=""><br class=""></div><div class="">Thanks,</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><blockquote type="cite" class=""><div class="">On Nov 30, 2018, at 7:24 AM, 박종인 <<a href="mailto:whddls9632@ajou.ac.kr" class="">whddls9632@ajou.ac.kr</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" class="">Hi all,</span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">I want to trace ReceivedInterests and ReceivedDatas.<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">So I use ConnectWithoutContext functions to connect the traceSources to my callback functions.<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><b class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">Config::Connect("/NodeList/*/ApplicationList/*/$ns3::ndn::App/ReceivedInterests",MakeCallback(&WillBeCalledWhenInterestIsReceived));<o:p class=""></o:p></span></b></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><b class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">Config::Connect("/NodeList/*/ApplicationList/*/$ns3::ndn::App/ReceivedDatas", MakeCallback(&WillBeCalledWhenDataIsReceived));<o:p class=""></o:p></span></b></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">And, my Callback functions are like this,<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><b class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">void<o:p class=""></o:p></span></b></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><b class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">WillBeCalledWhenInterestIsReceived( std::shared_ptr<const ndn::Interest> i, Ptr<ndn::App> a, std::shared_ptr<ndn::Face> f )<o:p class=""></o:p></span></b></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><b class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">{<o:p class=""></o:p></span></b></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif; text-indent: 40pt;" class=""><b class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">cout << "Interest is Received at " << f->getId() << "\t" << i->getName().toUri();<o:p class=""></o:p></span></b></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><b class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">}<o:p class=""></o:p></span></b></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><b class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class=""><o:p class=""> </o:p></span></b></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><b class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">void<o:p class=""></o:p></span></b></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><b class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">WillBeCalledWhenDataIsReceived( shared_ptr<const ndn::Data> d , Ptr<ndn::App> a, shared_ptr<ndn::Face> f )<o:p class=""></o:p></span></b></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><b class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">{ <span class="Apple-converted-space"> </span><o:p class=""></o:p></span></b></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><b class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">     cout << "Data is Received at " << f->getId() << "\t" << d->getName().toUri() << "\t" << d->getContent().value();<o:p class=""></o:p></span></b></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><b class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">}<o:p class=""></o:p></span></b></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">When I try to compile this source code, I got Errors like this,<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">In file included from ./ns3/attribute.h:25:0,<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">                 from ./ns3/attribute-accessor-helper.h:23,<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">                 from ./ns3/core-module.h:12,<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">                 from ../src/ndnSIM/examples/ndn-wireless-wired.cpp:1:<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">./ns3/ptr.h: In instantiation of ‘ns3::Ptr<T>::~Ptr() [with T = ns3::ndn::App]’:<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">./ns3/callback.h:482:31:   required from ‘R ns3::FunctorCallbackImpl<T, R, T1, T2, T3, T4, T5, T6, T7, T8, T9>::operator()(T1, T2, T3) [with T = void (*)(std::shared_ptr<const ndn::Data>, ns3::Ptr<ns3::ndn::App>, std::shared_ptr<nfd::face::Face>); R = void; T1 = std::shared_ptr<const ndn::Data>; T2 = ns3::Ptr<ns3::ndn::App>; T3 = std::shared_ptr<nfd::face::Face>; T4 = ns3::empty; T5 = ns3::empty; T6 = ns3::empty; T7 = ns3::empty; T8 = ns3::empty; T9 = ns3::empty]’<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">../src/ndnSIM/examples/ndn-wireless-wired.cpp:374:1:   required from here<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">./ns3/ptr.h:758:7: error: invalid use of incomplete type ‘class ns3::ndn::App’<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">       m_ptr->Unref ();<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">       ^<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">In file included from ./ns3/ndn-all.hpp:34:0,<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">                 from ./ns3/ndnSIM-module.h:10,<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">                 from ../src/ndnSIM/examples/ndn-wireless-wired.cpp:7:<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">./ns3/ndnSIM/utils/tracers/ndn-app-delay-tracer.hpp:41:7: note: forward declaration of ‘class ns3::ndn::App’<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">class App;<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">       ^<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">In file included from ./ns3/attribute.h:25:0,<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">                 from ./ns3/attribute-accessor-helper.h:23,<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">                 from ./ns3/core-module.h:12,<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">                 from ../src/ndnSIM/examples/ndn-wireless-wired.cpp:1:<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">./ns3/ptr.h: In instantiation of ‘void ns3::Ptr<T>::Acquire() const [with T = ns3::ndn::App]’:<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">./ns3/ptr.h:743:11:   required from ‘ns3::Ptr<T>::Ptr(const ns3::Ptr<T>&) [with T = ns3::ndn::App]’<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">./ns3/callback.h:482:31:   required from ‘R ns3::FunctorCallbackImpl<T, R, T1, T2, T3, T4, T5, T6, T7, T8, T9>::operator()(T1, T2, T3) [with T = void (*)(std::shared_ptr<const ndn::Data>, ns3::Ptr<ns3::ndn::App>, std::shared_ptr<nfd::face::Face>); R = void; T1 = std::shared_ptr<const ndn::Data>; T2 = ns3::Ptr<ns3::ndn::App>; T3 = std::shared_ptr<nfd::face::Face>; T4 = ns3::empty; T5 = ns3::empty; T6 = ns3::empty; T7 = ns3::empty; T8 = ns3::empty; T9 = ns3::empty]’<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">../src/ndnSIM/examples/ndn-wireless-wired.cpp:374:1:   required from here<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">./ns3/ptr.h:712:7: error: invalid use of incomplete type ‘class ns3::ndn::App’<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">       m_ptr->Ref ();<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">       ^<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">In file included from ./ns3/ndn-all.hpp:34:0,<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">                 from ./ns3/ndnSIM-module.h:10,<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">                 from ../src/ndnSIM/examples/ndn-wireless-wired.cpp:7:<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">./ns3/ndnSIM/utils/tracers/ndn-app-delay-tracer.hpp:41:7: note: forward declaration of ‘class ns3::ndn::App’<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">class App;<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">Am I do anything wrong?<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class="">I need your help !!<span class="Apple-converted-space"> </span></span><span lang="EN-US" style="font-size: 12pt; font-family: "Segoe UI Emoji", sans-serif;" class="">☹</span><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="font-size: 12pt; font-family: 굴림, sans-serif;" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="" class="">Thanks in advance,<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕", sans-serif;" class=""><span lang="EN-US" style="" class="">Jongin Park</span></div></div><br class=""></div></blockquote></div><br class=""></div></body></html>