[ns] ns_ variable in Multipath Classifier of Node object
Tatiana Polishchuk
tessa3d at gmail.com
Tue Sep 16 01:51:45 PDT 2008
I'm trying to understand and change the logic of the Multipath Classifier of
the Node object and need help in understanding what are the values of ns_
and ns_(0) variables in it's definition:
#include "classifier.h"
class MultiPathForwarder : public Classifier {
public:
MultiPathForwarder() : ns_(0) {}
virtual int classify(Packet*) {
int cl;
int fail = ns_;
do {
cl = ns_++;
ns_ %= (maxslot_ + 1);
} while (slot_[cl] == 0 && ns_ != fail);
return cl;
}
private:
int ns_;
};
Please, help.
More information about the Ns-users
mailing list