[ns] packet send and recv in ns2.1b8a
friend msrit
msritfriend@hotmail.com
Sat Apr 20 05:17:17 2002
in the file queue.cc
void Queue :: recv (Packet* p, Handler*)
{
enque(p);
if (!blocked_)
{
p = deque();
if (p != 0)
{
blocked_ = 1;
target_->recv(p,&qh_);
}
}
}
We know that target_ is NsObject*
We found send to be
inline void send ( Packet *p, Handler *h) {target_->recv(p,h);}
we could not find out the value given to target_ in both scenarios.
Is target_ set to some value every time target_->recv is called? If so where
is it getting set?
We find this an endless recursion.
Please help us.
Thanks in advance
With Regards
Friend
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.