[ns] Size of the queue in c++ not solved yet Please help and reply
ahmed nagy
ahmed.nagy2005 at gmail.com
Fri Feb 2 06:56:55 PST 2007
Dear all would you kindly help on that
i would like to get the instantanous queue size of packets in my C++ code at
each node. I have a routing agent that routes packet and needs this piece of
information in oder to take routing decisions. I am using a high prioirty
queue for the routing information I get
PacketQueue *pkq_;
pkq_->length(); I get a segmentation fault even when i check that pkq_ is
not null
PriQueue *pkq_;
pkq_->length(); I get a segmentation fault even when i check that pkq_ is
not null
DropTail *pkq_;
pkq_->length(); I get a segmentation fault even when i check that pkq_ is
not null
PriQueue *pkq_;
pkq_->q_->length(); I get a private member you are not alowed to access
I tried to declare int cur_length=length(); inside DropTail::enque(Packet*
p) but it also gives zero
as suggested in
http://mailman.isi.edu/pipermail/ns-users/2005-June/050584.html
I tried to call q_->length(); inside priqueue in the recv function it gives
a zero always
I try to print the length from such a method in either Queue, DropTail or
PriQueue It only prints a value of zero and doesn't change at all.
Would anyone kindly help on that i really apperciate the reply
Thank you very much
Ahmed
More information about the Ns-users
mailing list