[ndnSIM] [Nfd-dev] getting the Neighbors nodes Ids of the current node
Klaus Schneider
klaus at cs.arizona.edu
Fri Aug 3 15:48:52 PDT 2018
Please cc the ndnSIM mailing list for your follow-up questions.
I don't think there should be a problem of using my helper functions
together with the getFace() method.
If there is, you might want to attach the error message (there's a lot
of asserts in the code) or the result.
Best regards,
Klaus
On 03/08/18 15:36, george assaf wrote:
> what I mean is that calling getFace() function on the list of nextHops
> will return the local face for each next hope that connects to the
> current node via p2p link .is that right ?
> if it is not , please correct it
>
> On Sat, Aug 4, 2018 at 1:30 AM, george assaf <engdotgeorge at gmail.com
> <mailto:engdotgeorge at gmail.com>> wrote:
>
> Dear Klaus,
> I have taken a deep look into fib-entry.hpp/cpp and
> fib-nexthop.hpp/cpp files .
> if I call the function const NextHopList& getNextHops() const; , it
> returns a vector of next hops ,and by then I will call const
> shared_ptr<Face>& getFace() const, after that the neighbor will be
> neighbor { ptpChan->GetPointToPointDevice(0)} because the index 0
> refers to the local netdevice for neighbor node ; right???
>
>
> On Fri, Aug 3, 2018 at 11:51 PM, george assaf
> <engdotgeorge at gmail.com <mailto:engdotgeorge at gmail.com>> wrote:
>
> I am very grateful to you Klaus.
> Wish u all the best and I would contact you if I encountered any
> trouble 😍
>
> On Fri, Aug 3, 2018, 11:36 PM Klaus Schneider
> <klaus at cs.arizona.edu <mailto:klaus at cs.arizona.edu>> wrote:
>
>
>
> 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>
> > <mailto: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>
> <mailto:engdotgeorge at gmail.com
> <mailto:engdotgeorge at gmail.com>>> wrote:
> >
> >
> >
> >
>
>
>
More information about the ndnSIM
mailing list