<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jan 4, 2018, at 5:45 PM, chavoosh ghasemi <<a href="mailto:chavoosh.ghasemi.off@gmail.com" class="">chavoosh.ghasemi.off@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Looks a good solution.<div class="">Anyway, how do you cast <<i class="">nfd::face::Transport</i>>  to <<i class="">ns3::NetDevice</i>>? Apparently, it cannot be handled automatically (or even by using <i class="">ns3::DynamicCast</i> and <i class="">dynamic_cast</i>).</div></div></div></blockquote><div><br class=""></div><div>I didn't say cast Transport to NetDevice, Transport to NetDeviceTransport.  After successful dynamic cast you can get NetDevice from the NetDeviceTransport instance.</div><div><br class=""></div><div>--</div><div>Alex</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Jan 4, 2018 at 11:53 AM, Alex Afanasyev <span dir="ltr" class=""><<a href="mailto:aa@cs.fiu.edu" target="_blank" class="">aa@cs.fiu.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space" class=""><br class=""><div class=""><span class=""><br class=""><blockquote type="cite" class=""><div class="">On Jan 4, 2018, at 1:42 PM, chavoosh ghasemi <<a href="mailto:chavoosh.ghasemi.off@gmail.com" target="_blank" class="">chavoosh.ghasemi.off@gmail.<wbr class="">com</a>> wrote:</div><br class="m_6738990149649943426Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi,<div class=""><br class=""></div><div class="">Here are two questions about nfd Face:</div><div class=""><br class=""></div><div class="">1- Assuming we have an nfd Face (or a PIT entry), how the node that this Face is associated to can be found?</div></div></div></blockquote><div class=""><br class=""></div></span><div class="">If it is based on NetDeviceTransport, then through extracting the transport, casting it to NetDeviceTransport and calling GetNode().   If it is pure (internal) nfd Face, then depending on where exactly you're, it is either impossible or you can use simualation context (Simulator::GetContext() and then look up Node, e.g., ns3::Ptr<ns3::Node> node = ns3::NodeList::GetNode(ns3::<wbr class="">Simulator::GetContext());)</div><span class=""><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="">2- How can we find the Face through which a given node is connected to its neighbor (e.g. A---B)?</div></div></div></blockquote><div class=""><br class=""></div></span><div class="">yes. Check implementation of helpers/ndn-link-control-<wbr class="">helper.cpp</div><br class=""><blockquote type="cite" class=""><div class=""><span class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><i class="">- Chavoosh</i></div><div class=""><br class=""></div><div class="">-- <br class=""><div class="m_6738990149649943426gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><span class=""><font color="#888888" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" style="color:rgb(34,34,34)" class=""><font color="#888888" class=""><span style="color:rgb(0,0,153);font-family:georgia,serif" class=""><i class=""><b class="">Chavoosh Ghasemi</b></i><br class=""><span style="color:rgb(153,153,0)" class=""><br class=""><span style="color:rgb(153,0,0)" class="">Ph.D. Student in Computer Networking</span></span></span></font><span style="color:rgb(153,0,0)" class=""><span style="font-family:georgia,serif" class=""> </span><span style="font-family:georgia,serif" class=""><br class="">University of Arizona - Computer Science Department</span><font size="1" class=""><b class=""><i class=""><br class=""></i></b></font></span></div><div style="color:rgb(34,34,34)" class=""><span style="color:rgb(204,0,0)" class=""><font size="1" class=""><b class=""><i class="">Address: Gould-Simpson 721B, </i></b></font><font size="1" class=""><b class=""><i class="">1040 E. 4th Street,<br class=""></i></b></font></span></div><div dir="ltr" style="color:rgb(34,34,34)" class=""><span style="color:rgb(153,0,0)" class=""><font size="1" class=""><b class=""><i class=""><span style="color:rgb(204,0,0)" class="">                 Tucson, AZ 85721</span><br class=""><br class="">"The <i class="">quieter</i> you become, the <i class="">more you can hear"</i></i></b></font></span></div></div></div></div></div> </font></span>
</div></div></div></div>
</div></div></span>
______________________________<wbr class="">_________________<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="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank" class="">http://www.lists.cs.ucla.edu/<wbr class="">mailman/listinfo/ndnsim</a><br class=""></div></blockquote></div><br class=""><div class="">
<div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word; line-break: after-white-space;" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word; line-break: after-white-space;" class=""><div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word; line-break: after-white-space;" class="">______________<span class="HOEnZb"><font color="#888888" class=""><br class="">Alex Afanasyev<br class="">Assistant Professor, SCIS, Florida International University<br class="">11200 SW 8th Street, ECS Room 261B, Miami, FL 33199<br class="">phone: <a href="tel:(305)%20348-4960" value="+13053484960" target="_blank" class="">+1.305.348.4960</a> (office); <a href="mailto:aa@cs.fiu.edu" target="_blank" class="">email: aa@cs.fiu.edu</a><br class="">web: <a href="https://users.cs.fiu.edu/~afanasyev/" target="_blank" class="">https://users.cs.fiu.edu/~<wbr class="">afanasyev/</a><br class=""><br class=""></font></span></div></div></div>
</div>
<br class=""></div></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><span class=""><font color="#888888" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" style="color:rgb(34,34,34)" class=""><font color="#888888" class=""><span style="color:rgb(0,0,153);font-family:georgia,serif" class=""><i style="" class=""><b class="">Chavoosh Ghasemi</b></i><br class=""><span style="color:rgb(153,153,0)" class=""><br class=""><span style="color:rgb(153,0,0)" class="">Ph.D. Student in Computer Networking</span></span></span></font><span style="color:rgb(153,0,0)" class=""><span style="font-family:georgia,serif" class=""> </span><span style="font-family:georgia,serif" class=""><br class="">University of Arizona - Computer Science Department</span><font size="1" class=""><b class=""><i class=""><br class=""></i></b></font></span></div><div style="color:rgb(34,34,34)" class=""><span style="color:rgb(204,0,0)" class=""><font size="1" class=""><b class=""><i class="">Address: Gould-Simpson 721B, </i></b></font><font size="1" class=""><b class=""><i class="">1040 E. 4th Street,<br class=""></i></b></font></span></div><div dir="ltr" style="color:rgb(34,34,34)" class=""><span style="color:rgb(153,0,0)" class=""><font size="1" class=""><b class=""><i class=""><span style="color:rgb(204,0,0)" class="">                 Tucson, AZ 85721</span><br class=""><br class="">"The <i class="">quieter</i> you become, the <i class="">more you can hear"</i></i></b></font></span></div></div></div></div></div>
</font></span>
</div></div></div></div>
</div>
</div></blockquote></div><br class=""><div class="">
<div dir="auto" style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">______________<br class="">Alex Afanasyev<br class="">Assistant Professor, SCIS, Florida International University<br class="">11200 SW 8th Street, ECS Room 261B, Miami, FL 33199<br class="">phone: +1.305.348.4960 (office); <a href="mailto:aa@cs.fiu.edu" class="">email: aa@cs.fiu.edu</a><br class="">web: <a href="https://users.cs.fiu.edu/~afanasyev/" class="">https://users.cs.fiu.edu/~afanasyev/</a><br class=""><br class=""></div></div></div>
</div>
<br class=""></body></html>