> > May be my question was not clear.
> >
> > I am trying to understand surge application so I started with
> > MultiHopLEPSM.nc module.
> >
> > I remarqued that in any neighbourhood table manipulation I found an
> > instruction with flag (which I didn't understand its utility)
> for(i = 0; i < ROUTE_TABLE_SIZE; i++) {
> pNbr = &NeighborTbl[i];
> if (pNbr->flags & NBRFLAG_VALID) { ///* I don't understant why we
> verify that??? *///
Lets say, you have an array of size 10 but less than 10 neighbors.
There are other ways to determine which slots are valid (contain real
neighbors) but using flags is one of them.
- om_p
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help