<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 Mark,<div class=""><br class=""></div><div class="">Thanks for the reply.</div><div class=""><br class=""></div><div class="">I am trying to write a customized application “VNDN".</div><div class=""><br class=""><table data-hpc="" class="js-tagsearch-file highlight tab-size js-file-line-container js-code-nav-container" data-tab-size="8" data-paste-markdown-skip="" data-tagsearch-lang="C++" data-tagsearch-path="VNDN.cpp" style="box-sizing: border-box; border-spacing: 0px; border-collapse: collapse; tab-size: 8; caret-color: rgb(31, 35, 40); color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 14px;"><tbody style="box-sizing: border-box;" class=""><tr style="box-sizing: border-box;" class=""><td id="L103" class="js-blob-rnum blob-num js-line-number js-code-nav-line-number" data-line-number="103" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC103" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--color-fg-default); overflow-wrap: anywhere; white-space: pre;"><span class="pl-k" style="box-sizing: border-box; color: var(--color-prettylights-syntax-keyword); font-size: 12px;">void</span></td></tr></tbody></table></div><div class=""><table data-hpc="" class="js-tagsearch-file highlight tab-size js-file-line-container js-code-nav-container" data-tab-size="8" data-paste-markdown-skip="" data-tagsearch-lang="C++" data-tagsearch-path="VNDN.cpp" style="box-sizing: border-box; border-spacing: 0px; border-collapse: collapse; tab-size: 8; caret-color: rgb(31, 35, 40); color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 14px;"><tbody style="box-sizing: border-box;" class=""><tr style="box-sizing: border-box;" class=""><td id="L104" class="js-blob-rnum blob-num js-line-number js-code-nav-line-number" data-line-number="104" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC104" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--color-fg-default); overflow-wrap: anywhere; white-space: pre;"><span style="font-size: 12px;" class=""><span class="pl-en" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity);">VNDN::OnInterest</span>(std::shared_ptr<<span class="pl-k" style="box-sizing: border-box; color: var(--color-prettylights-syntax-keyword);">const</span> ndn::Interest> interest)</span></td></tr><tr style="box-sizing: border-box;" class=""><td id="L105" class="js-blob-rnum blob-num js-line-number js-code-nav-line-number" data-line-number="105" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC105" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--color-fg-default); overflow-wrap: anywhere; white-space: pre;"><span style="font-size: 12px;" class="">{<br class=""></span></td></tr><tr style="box-sizing: border-box;" class=""><td id="L107" class="js-blob-rnum blob-num js-line-number js-code-nav-line-number" data-line-number="107" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC107" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--color-fg-default); overflow-wrap: anywhere; white-space: pre;"><span style="font-size: 12px;" class="">  <span class="pl-c1" style="box-sizing: border-box; color: var(--color-prettylights-syntax-constant);">ndn::App::OnInterest</span>(interest);</span></td></tr><tr style="box-sizing: border-box;" class=""><td id="L108" class="js-blob-rnum blob-num js-line-number js-code-nav-line-number" data-line-number="108" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC108" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--color-fg-default); overflow-wrap: anywhere; white-space: pre;"><span style="font-size: 12px;" class="">  <span class="pl-en" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity);">NS_LOG_INFO</span>(<span class="pl-s" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);"><span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span>VNDN node receives Interest, Interest = <span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span></span> << interest-><span class="pl-en" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity);">getName</span>());<br class=""></span></td></tr><tr style="box-sizing: border-box;" class=""><td id="L115" class="js-blob-rnum blob-num js-line-number js-code-nav-line-number" data-line-number="115" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC115" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--color-fg-default); overflow-wrap: anywhere; white-space: pre;"><span style="font-size: 12px;" class="">}</span></td></tr><tr style="box-sizing: border-box;" class=""><td id="L116" class="js-blob-rnum blob-num js-line-number js-code-nav-line-number" data-line-number="116" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC116" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--color-fg-default); overflow-wrap: anywhere; white-space: pre;"><span style="font-size: 12px;" class="">
</span></td></tr><tr style="box-sizing: border-box;" class=""><td id="L117" class="js-blob-rnum blob-num js-line-number js-code-nav-line-number" data-line-number="117" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC117" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--color-fg-default); overflow-wrap: anywhere; white-space: pre;"><span class="pl-c" style="box-sizing: border-box; color: var(--color-prettylights-syntax-comment); font-size: 12px;"><span class="pl-c" style="box-sizing: border-box; color: var(--color-prettylights-syntax-comment);">//</span> Callback that will be called when Data arrives</span></td></tr><tr style="box-sizing: border-box;" class=""><td id="L118" class="js-blob-rnum blob-num js-line-number js-code-nav-line-number" data-line-number="118" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC118" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--color-fg-default); overflow-wrap: anywhere; white-space: pre;"><span class="pl-k" style="box-sizing: border-box; color: var(--color-prettylights-syntax-keyword); font-size: 12px;">void</span></td></tr><tr style="box-sizing: border-box;" class=""><td id="L119" class="js-blob-rnum blob-num js-line-number js-code-nav-line-number" data-line-number="119" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC119" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--color-fg-default); overflow-wrap: anywhere; white-space: pre;"><span style="font-size: 12px;" class=""><span class="pl-en" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity);">VNDN::OnData</span>(std::shared_ptr<<span class="pl-k" style="box-sizing: border-box; color: var(--color-prettylights-syntax-keyword);">const</span> ndn::Data> data)</span></td></tr><tr style="box-sizing: border-box;" class=""><td id="L120" class="js-blob-rnum blob-num js-line-number js-code-nav-line-number" data-line-number="120" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC120" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--color-fg-default); overflow-wrap: anywhere; white-space: pre;"><span style="font-size: 12px;" class="">{</span></td></tr><tr style="box-sizing: border-box;" class=""><td id="L121" class="js-blob-rnum blob-num js-line-number js-code-nav-line-number" data-line-number="121" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC121" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--color-fg-default); overflow-wrap: anywhere; white-space: pre;"><span style="font-size: 12px;" class="">  <span class="pl-k" style="box-sizing: border-box; color: var(--color-prettylights-syntax-keyword);">if</span> (!m_active)</span></td></tr><tr style="box-sizing: border-box;" class=""><td id="L122" class="js-blob-rnum blob-num js-line-number js-code-nav-line-number" data-line-number="122" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC122" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--color-fg-default); overflow-wrap: anywhere; white-space: pre;"><span style="font-size: 12px;" class="">    <span class="pl-k" style="box-sizing: border-box; color: var(--color-prettylights-syntax-keyword);">return</span>;</span></td></tr><tr style="box-sizing: border-box;" class=""><td id="L123" class="js-blob-rnum blob-num js-line-number js-code-nav-line-number" data-line-number="123" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC123" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--color-fg-default); overflow-wrap: anywhere; white-space: pre;"><span style="font-size: 12px;" class="">
</span></td></tr><tr style="box-sizing: border-box;" class=""><td id="L124" class="js-blob-rnum blob-num js-line-number js-code-nav-line-number" data-line-number="124" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC124" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--color-fg-default); overflow-wrap: anywhere; white-space: pre;"><span style="font-size: 12px;" class="">  <span class="pl-c1" style="box-sizing: border-box; color: var(--color-prettylights-syntax-constant);">ndn::App::OnData</span>(data); <span class="pl-c" style="box-sizing: border-box; color: var(--color-prettylights-syntax-comment);"><span class="pl-c" style="box-sizing: border-box; color: var(--color-prettylights-syntax-comment);">//</span> tracing inside</span></span></td></tr><tr style="box-sizing: border-box;" class=""><td id="L125" class="js-blob-rnum blob-num js-line-number js-code-nav-line-number" data-line-number="125" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC125" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--color-fg-default); overflow-wrap: anywhere; white-space: pre;"><span style="font-size: 12px;" class="">  </span></td></tr><tr style="box-sizing: border-box;" class=""><td id="L126" class="js-blob-rnum blob-num js-line-number js-code-nav-line-number" data-line-number="126" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC126" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--color-fg-default); overflow-wrap: anywhere; white-space: pre;"><span style="font-size: 12px;" class="">  <span class="pl-en" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity);">NS_LOG_INFO</span>(<span class="pl-s" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);"><span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span>VNDN node receives Data, Data = <span class="pl-pds" style="box-sizing: border-box; color: var(--color-prettylights-syntax-string);">"</span></span> << data-><span class="pl-en" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity);">getName</span>());<br class=""></span></td></tr><tr style="box-sizing: border-box;" class=""><td id="L129" class="js-blob-rnum blob-num js-line-number js-code-nav-line-number" data-line-number="129" style="box-sizing: border-box; padding: 0px 10px; position: relative; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: 20px; color: var(--color-fg-subtle); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC129" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; color: var(--color-fg-default); overflow-wrap: anywhere; white-space: pre;"><span style="font-size: 12px;" class=""> }</span></td></tr></tbody></table><div class=""><br class=""></div><div class="">I run the following command: </div><div class=""><span class="n" style="background-color: rgb(255, 255, 255); font-weight: bold;">NS_LOG</span><span class="o" style="background-color: rgb(255, 255, 255); font-weight: bold; color: rgb(102, 102, 102);">=</span><span class="n" style="background-color: rgb(255, 255, 255); font-weight: bold;">ndn</span><span class="o" style="background-color: rgb(255, 255, 255); font-weight: bold; color: rgb(102, 102, 102);">.</span><span class="n" style="background-color: rgb(255, 255, 255); font-weight: bold;">Consumer</span><span class="p" style="background-color: rgb(255, 255, 255); font-weight: bold;">:</span><span class="n" style="background-color: rgb(255, 255, 255); font-weight: bold;">ndn</span><span class="o" style="background-color: rgb(255, 255, 255); font-weight: bold; color: rgb(102, 102, 102);">.</span><span class="n" style="background-color: rgb(255, 255, 255); font-weight: bold;">Producer:</span><span class="n" style="background-color: rgb(255, 255, 255); font-weight: bold;">ndn</span><span class="o" style="background-color: rgb(255, 255, 255); font-weight: bold; color: rgb(102, 102, 102);">.</span><span class="o" style="background-color: rgb(255, 255, 255); font-weight: bold;">VNDN </span><span class="o" style="background-color: rgb(255, 255, 255); font-weight: bold; color: rgb(102, 102, 102);">./</span><span class="n"><b class=""><span style="background-color: rgb(255, 255, 255);" class="">waf </span></b></span><b style="background-color: rgb(255, 255, 255);" class=""> <span class="n"><font color="#666666" class=""><span style="caret-color: rgb(102, 102, 102);" class="">—</span></font>run</span><span class="o" style="color: rgb(102, 102, 102);">=xxx</span></b></div><div class=""><b style="background-color: rgb(255, 255, 255);" class=""><span class="o" style="color: rgb(102, 102, 102);"><br class=""></span></b></div><div class=""><span class="o" style="background-color: rgb(255, 255, 255);">The VNDN::OnInterest is called upon the arrival of the Interest but </span><span style="background-color: rgb(255, 255, 255);" class="">VNDN::OnData is not called upon the arrival of the Data.</span></div><div class=""><span style="background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div class="">Thank you for your time and assistance.</div><div class=""><br class=""></div><div class="">Best,</div><div class="">Puming</div><div class=""><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On Mar 29, 2023, at 1:27 AM, Sirapop Theeranantachai via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" class="">ndnsim@lists.cs.ucla.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">
<div class="">Hello,</div><div class=""><br class=""></div><div class="">What command did you run when you use ndnSIM. Consumers and producers in ndnSIM will print out logs only if "NS_LOG" variables are defined as 
ndn.Consumer and ndn.Producer respectively.</div><div class=""><br class=""></div><div class="">For example,</div><div class="">ndn.Consumer contains "OnData", "SendPacket", and "OnTimeout".</div><div class="">ndn.Producer contains "OnInterest".</div><div class="">If you want ndnSIM to show the log of both "OnData" and "OnInterest", you may need to put prefix before the ./waf command such as:</div><div class=""><br class=""></div><div class="">
<b class="">NS_LOG=ndn.Consumer:ndn.Producer ./waf --run=xxx </b><br class=""></div><div class=""><br class=""></div><div class="">If the packet does not actually arrive, you will see OnTimeout instead, so I do believe the packets are arriving.<br class=""><br class="">Hope this help!<br class="">Mark <br class=""></div><div class=""><br class=""></div><div class="">Begin forwarded message:</div><br class=""><div style="margin:0px" class=""><span style="font-family: -webkit-system-font, "Helvetica Neue", Helvetica, sans-serif;" class=""><b class="">From: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif" class="">Puming Fang via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank" class="">ndnsim@lists.cs.ucla.edu</a>><br class=""></span></div><div style="margin:0px" class=""><span style="font-family: -webkit-system-font, "Helvetica Neue", Helvetica, sans-serif;" class=""><b class="">Subject: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif" class=""><b class="">[ndnSIM] App::OnData(data) is not called when Data Arrives</b><br class=""></span></div><div style="margin:0px" class=""><span style="font-family: -webkit-system-font, "Helvetica Neue", Helvetica, sans-serif;" class=""><b class="">Date: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif" class="">March 27, 2023 at 11:11:32 AM PDT<br class=""></span></div><div style="margin:0px" class=""><span style="font-family: -webkit-system-font, "Helvetica Neue", Helvetica, sans-serif;" class=""><b class="">To: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif" class=""><a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank" class="">ndnsim@lists.cs.ucla.edu</a><br class=""></span></div><div style="margin:0px" class=""><span style="font-family: -webkit-system-font, "Helvetica Neue", Helvetica, sans-serif;" class=""><b class="">Reply-To: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif" class="">Puming Fang <<a href="mailto:pfang@umass.edu" target="_blank" class="">pfang@umass.edu</a>><br class=""></span></div><br class=""><div class=""><div style="overflow-wrap: break-word;" class=""><div dir="auto" style="overflow-wrap: break-word;" class=""><p class="">Dear NDN team,</p><p class="">I
 am currently working with ndnsim and have a query regarding the 
handling of Interest and Data packets. While attempting to implement 
certain operations upon the arrival of these packets, I have noticed 
that while the "App::OnInterest(Interest)" function works as expected, 
the "App::OnData(Data)" function does not seem to be called when the 
Data packet arrives. My intention is to log some information upon the 
arrival of Data packets.</p><p class="">I can confirm that the Data packets are 
indeed arriving at the node and being forwarded correctly. Could you 
please advise me on what could be causing this issue?</p><p class="">Thank you for your time and assistance.</p><p class="">Best,
Puming</p></div></div>_______________________________________________<br class="">ndnSIM mailing list<br class=""><a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank" class="">ndnSIM@lists.cs.ucla.edu</a><br class=""><a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.lists.cs.ucla.edu%2Fmailman%2Flistinfo%2Fndnsim&data=05%7C01%7Cpfang%40umass.edu%7Ce7cf139fa72f4b12606b08db302f746c%7C7bd08b0b33954dc194bbd0b2e56a497f%7C0%7C0%7C638156752614482532%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Ikrf%2FYiN%2BCYx5uLulzviUe6zch8tJwrdlY%2FvXhPW5Dg%3D&reserved=0" originalsrc="https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" shash="nx4Q6MgoHqh6JzfWls4XIEKxhg0BRRM0duwR4jWihJpSeTQFKRO4pLzmiE+N51krKKywhHzxoNs8g9TDSpCs7iRMRhlPl1Ruf466CQAqKFkFGmcOAPEmU+6SlgysNuRszwo4C2D/OWdyia3X8YCT9k2Mm52XE7mY67sxuzcg+nA=" target="_blank" class="">https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a></div>

</div>
_______________________________________________<br class="">ndnSIM mailing list<br class=""><a href="mailto:ndnSIM@lists.cs.ucla.edu" class="">ndnSIM@lists.cs.ucla.edu</a><br class="">https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.lists.cs.ucla.edu%2Fmailman%2Flistinfo%2Fndnsim&data=05%7C01%7Cpfang%40umass.edu%7Ce7cf139fa72f4b12606b08db302f746c%7C7bd08b0b33954dc194bbd0b2e56a497f%7C0%7C0%7C638156752614482532%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Ikrf%2FYiN%2BCYx5uLulzviUe6zch8tJwrdlY%2FvXhPW5Dg%3D&reserved=0<br class=""></div></blockquote></div><br class=""></div></body></html>