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

Re: [ns] ABOUT QUEUE LENGTH



read the manual, it will tell you that queues are held by links, not nodes. And 
if you do a bit of searching in the archives you will find a few ways of getting 
the 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,
>
>
>

-Tarik