[ndnSIM] [Nfd-dev] getting the Neighbors nodes Ids of the current node
Klaus Schneider
klaus at cs.arizona.edu
Fri Aug 3 13:36:34 PDT 2018
On 03/08/18 00:01, george assaf wrote:
> Dear Klaus,
> I would like to thank you for your help.
> for the the cod of neighbor discovery , I guess it discover one neighbor
> for the node .
> Can I call this function getNeighborId(Face) by using a loop such as
> *while *or *for *in order to get all Ids of the neighbors of current node ?
> because may the current node has multiple point to point links
>
> p------2------p-(current node)-p-----------2---------p
> p
> -
> -
> -
> 2
> -
> p
Sure you can.
> Additionally, how can I get the array of all faces of current node?
> thank you again
Look into fib::Entry::getNextHops()
This function returns a vector of all nexthops, and for each nexthop you
can run getFace() to access the face.
Klaus
>
> On Wed, Aug 1, 2018 at 1:49 AM, george assaf <engdotgeorge at gmail.com
> <mailto:engdotgeorge at gmail.com>> wrote:
>
> thank you for the response and wish you all the best my friend
>
> On Tue, Jul 31, 2018 at 11:46 PM, george assaf
> <engdotgeorge at gmail.com <mailto:engdotgeorge at gmail.com>> wrote:
>
>
>
>
More information about the ndnSIM
mailing list