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

Re: [ns] target_



So what parameter exactly defines the destination?

Ahmad
--- Di-Fa Chang <[email protected]> wrote:
> No, target_ is not the destination of the packet.
> read ns manual chapter 5 and 6 about how ns does
> packet forwarding.
> 
> - difa
> 
> On Thu, 15 Nov 2001, SHUJU WU wrote:
> 
> > Dear fellows,
> >
> > in agent.cc, a function is defined as follows:
> >
> > void send(Packet* p, Handler* h) {
> target_->recv(p, h); }
> >
> > My question is:
> > in this function, I assume 'target_' is the
> NsObject
> > which is the destination, but I couldn't figure
> out
> > where "target_" is assigned the value of
> destination.
> > Please tell me if you know, I've spent quite some
> time on it..
> >
> > Thanks in advance,
> >
> > SW
> >
> 


__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1