[ndnSIM] about extract node information to interest packet
Spyridon (Spyros) Mastorakis
mastorakis at cs.ucla.edu
Wed Apr 19 19:45:24 PDT 2017
Hi,
you have access to the Face table structure, where you can find the faces of a node:
https://github.com/ctwolfxzd/NFD/blob/NFD-0.5.0-30-g934f505-ndnSIM/daemon/fw/forwarder.hpp#L69-L73 <https://github.com/ctwolfxzd/NFD/blob/NFD-0.5.0-30-g934f505-ndnSIM/daemon/fw/forwarder.hpp#L69-L73>
Thanks,
Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA
> On Apr 19, 2017, at 5:58 AM, 何晓春 <hexiaochun at bupt.edu.cn> wrote:
>
>
> Dear Sir/Madam,
>
>
>
> I'm a senior student in China. I‘m want to extract node information to interest packet so that I can decide where to cache the data.
>
> The information is about how many faces the node have or some other attributes defined by myself.
>
>
>
> 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) ).
>
>
>
> Looking for your help, thank you.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170419/02bf553c/attachment.html>
More information about the ndnSIM
mailing list