[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] ABOUT QUEUE LENGTH




HI ALL 
How can one get queue lenth in his agent .....My problem is that i want to
find out that whether a perticular node has some packets in its queue or
not.
How can I do it 
I have tried with

PacketQueue* q=new PacketQueue;

cout<<q->length();

but it is returning always zero.

if I try 

Queue* q=new Queue;

cout<<q->length();

 then it gives error.....that it can not allocate Queue as Queue is
abstract........


Please help asap

thank you

Regards,



Pushpendra Singh
C-35,Nilgiri House
IIT Campus,New Delhi
E-mail:	[email protected]
	[email protected]
	[email protected]
Ph.   : 91-11-6521278

             Visit me at:  www.cse.iitd.ernet.in/~csa99010