thank you very much ! ;)<br><br><br><br><DIV style="FONT: 9pt 宋体">----- 回复邮件 -----<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>发信人:</B>Spyridon (Spyros) Mastorakis <mastorakis@cs.ucla.edu></DIV><DIV><B>收信人:</B>何晓春 <hexiaochun@bupt.edu.cn></DIV><DIV><B>抄  送:</B>ndnsim <ndnsim@lists.cs.ucla.edu></DIV><DIV><B>时  间:</B>2017年04月20日 10时45分24秒</DIV><DIV><B>主  题:</B>Re: [ndnSIM] about extract node information to interest packet</DIV></DIV><BR><BLOCKQUOTE style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0mm; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0mm; MARGIN: 5pt 0mm 5pt 3.75pt; BORDER-LEFT: black 1.5pt solid; PADDING-TOP: 0mm; BORDER-BOTTOM: medium none"><br><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="">Hi,<div class=""><br class=""></div><div class="">you have access to the Face table structure, where you can find the faces of a node:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/ctwolfxzd/NFD/blob/NFD-0.5.0-30-g934f505-ndnSIM/daemon/fw/forwarder.hpp#L69-L73" class="">https://github.com/ctwolfxzd/NFD/blob/NFD-0.5.0-30-g934f505-ndnSIM/daemon/fw/forwarder.hpp#L69-L73</a></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 Apr 19, 2017, at 5:58 AM, 何晓春 <<a href="mailto:hexiaochun@bupt.edu.cn" class="">hexiaochun@bupt.edu.cn</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">​<br class="webkit-block-placeholder"></div><p class="">Dear Sir/Madam,</p><p class=""><br class=""></p><p class="">I'm a <span class="short_text" id="result_box" lang="en"><span class="">senior student in China. I‘m want to extract node information to interest packet so that I can decide where to cache the data.</span></span></p><p class=""><span class="short_text" lang="en"><span class="">The information is about how many faces the node have or some other attributes defined by myself.</span></span></p><p class=""><span class="short_text" lang="en"><span class=""><br class=""></span></span></p><p class=""><span class="short_text" lang="en"><span class="">My question is where to define these attributes attached with nodes and how to get these attributes in Forwarder's function (  e.g.   Forwarder::onIncomingInterest(Face& inFace, const Interest& interest)  ).</span></span></p><p class=""><span class="short_text" lang="en"><span class=""><br class=""></span></span></p><p class=""><span class="short_text" lang="en"><span class="">Looking for your help, thank you.</span></span></p></div></blockquote></div><br class=""></div></body></html></BLOCKQUOTE>