<div dir="ltr"><font face="arial, sans-serif">Hi, </font><div><font face="arial, sans-serif">To get node ID in forwarder class, you should use this commands:</font></div><div><font face="arial, sans-serif"><br></font></div><div><pre class="gmail-a-b-r-La" style="margin-top:0px;margin-bottom:0px;white-space:pre-wrap;color:rgb(0,0,0);font-size:14px"><font face="arial, sans-serif">auto node = ns3::NodeList::GetNode(ns3::Simulator::GetContext());</font></pre><pre class="gmail-a-b-r-La" style="margin-top:0px;margin-bottom:0px;white-space:pre-wrap;color:rgb(0,0,0);font-size:14px"><font face="arial, sans-serif">std::cout<<" Node ID : "<<node->GetId()<<std::endl;  //Just for verification</font></pre><pre class="gmail-a-b-r-La" style="margin-top:0px;margin-bottom:0px;white-space:pre-wrap;color:rgb(0,0,0);font-size:14px"><font face="arial, sans-serif"><br></font></pre><pre class="gmail-a-b-r-La" style="margin-top:0px;margin-bottom:0px;white-space:pre-wrap;color:rgb(0,0,0);font-size:14px"><font face="arial, sans-serif">Hope will help.</font></pre><pre class="gmail-a-b-r-La" style="margin-top:0px;margin-bottom:0px;white-space:pre-wrap;color:rgb(0,0,0);font-size:14px"><font face="arial, sans-serif">Regards.</font></pre></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 29 janv. 2020 à 08:37, 15068375219 <<a href="mailto:15068375219@139.com">15068375219@139.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-family:微软雅黑;font-size:16px;color:rgb(0,0,0);line-height:1.5;word-break:break-all">Dear all,</div><div style="font-family:微软雅黑;font-size:16px;color:rgb(0,0,0);line-height:1.5;word-break:break-all">I'm trying to get the nodes object in forward.cpp.</div><div style="font-family:微软雅黑;font-size:16px;color:rgb(0,0,0);line-height:1.5;word-break:break-all">In previous discussion email which subject is "access stored content in cache from forward.cpp". </div><div style="font-family:微软雅黑;font-size:16px;color:rgb(0,0,0);line-height:1.5;word-break:break-all">Mr./Ms Zeinab used the following code to get the name of the cached content.</div><div style="font-family:微软雅黑;font-size:16px;color:rgb(0,0,0);line-height:1.5;word-break:break-all"><div style="line-height:1.5;word-break:break-all"><br></div><div style="line-height:1.5;word-break:break-all">  for(ns3::Ptr<ns3::ndn::cs::Entry> csentry= m_csFromNdnSim->Begin(); <br></div><div style="line-height:1.5;word-break:break-all">      csentry!= m_csFromNdnSim->End(); csentry=m_csFromNdnSim->Next(csentry))</div><div style="line-height:1.5;word-break:break-all">  {</div><div style="line-height:1.5;word-break:break-all">      std::cout<<"the name"<<csentry->GetName()<<"is stored in  node with</div><div style="line-height:1.5;word-break:break-all">      id"<<node->GetId()<<"\n";</div><div style="line-height:1.5;word-break:break-all">  }<br></div></div><div style="font-family:微软雅黑;font-size:16px;color:rgb(0,0,0);line-height:1.5;word-break:break-all"><br></div><div style="font-family:微软雅黑;font-size:16px;color:rgb(0,0,0);line-height:1.5;word-break:break-all">I also want to implement such code, but I don't know how to get the object of node.</div><div style="line-height:1.5;word-break:break-all"><font face="微软雅黑">Maybe this is a simple problem, but I haven't solved it for a long time.</font><br></div><div style="font-family:微软雅黑;font-size:16px;color:rgb(0,0,0);line-height:1.5;word-break:break-all">Your help is really appreciated !<br></div><div style="font-family:微软雅黑;font-size:16px;color:rgb(0,0,0);line-height:1.5;word-break:break-all"><br></div><div style="font-family:微软雅黑;font-size:16px;color:rgb(0,0,0);line-height:1.5;word-break:break-all">Regards,</div><div style="font-family:微软雅黑;font-size:16px;color:rgb(0,0,0);line-height:1.5;word-break:break-all">Yin</div><div style="font-family:宋体;font-size:13px;color:rgb(0,0,0);line-height:1.5"><br><br><br><br><br><br></div><div id="gmail-m_-501227100091865743signContainer"><table id="gmail-m_-501227100091865743signTable" style="width:100%;white-space:initial"><tbody><tr><td id="gmail-m_-501227100091865743dzmp_table" style="width:480px;font-family:"Microsoft Yahei",verdana,Simun"><div><div style="width:480px;max-width:480px"><div style="padding:18px 10px 0px;float:left"><img name="m_-501227100091865743_hideEditorBar" src="https://img.zone139.com/Upload/Photo/CommonHeadImage/E6AEB7/E6AEB7_df574d.gif" style="border-radius: 50%; width: 80px; height: 80px;" id="gmail-m_-501227100091865743img_0.6552966788172094"></div><div style="float:left;color:rgb(102,102,102);font-size:12px;width:320px"><p style="text-align:left;margin:0px;padding:18px 0px 5px;line-height:18px;width:365px;font-family:"Microsoft Yahei",verdana,Simun"><span style="font-size:16px;padding-right:23px;display:inline-block;line-height:18px">殷继亮</span><span style="font-size:12px"></span></p><p style="text-align:left;margin:1px;padding:0px;line-height:22px;width:365px;overflow:hidden"><i style="background:url("https://appmail.mail.10086.cn/m2015/images/imgsrc/vcard.png") -30px 0px no-repeat;display:inline-block;float:left;margin-right:11px;width:15px;height:18px"></i><span style="font-size:12px;margin:0px;padding:0px;line-height:18px;width:91%;display:block;float:left;font-family:"Microsoft Yahei",verdana,Simun"><a href="mailto:15068375219@139.com" target="_blank">15068375219@139.com</a><i></i></span></p></div><div style="clear:both"></div></div></div><div style="margin:0px;padding:0px;height:24px;line-height:24px" id="gmail-m_-501227100091865743openSign"><a style="float:right;font-size:12px;color:rgb(26,138,216);text-decoration:none"><span style="color:rgb(102,102,102)">电子名片新出VIP模板啦,</span>快来体验>></a></div></td><td id="gmail-m_-501227100091865743signInfoCode" style="width:auto;display:block;padding:0px 8px 8px;vertical-align:top"><div style="vertical-align:top"><img rel="signImg_qcode" name="m_-501227100091865743_hideEditorBar" src="https://smsrebuild1.mail.10086.cn/addr_p3_gw/qrcode/ContactsServlet?type=3&name=%E6%AE%B7%E7%BB%A7%E4%BA%AE&email=15068375219%40139.com" alt="扫描二维码添加名片到手机" id="gmail-m_-501227100091865743img_0.8844382564649655"></div><div style="margin-top:5px;margin-bottom:5px"><p style="width:146px;font-size:12px;color:rgb(68,68,68);text-align:center;line-height:1.4;margin:0px">扫一扫,</p><p style="width:146px;font-size:12px;color:rgb(68,68,68);text-align:center;line-height:1.4;margin:0px">快速添加名片到手机</p></div></td></tr></tbody></table></div>_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Bien cordialement.</div>Mr DJAMA Adel.<div>Ecole Nationale Superieure d'Informatique - Oued smar, Alger, Algérie.</div></div></div>