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

Re: [ns] target_



I have a related Q:
I think the reason why the problem mentioned in the previous email
happens is that the target_ of the routing agent is overwritten to the
CMUTrace() object somehow...  

my Q is:
when create wireless node, is there somewhere in the initialization
phase that the routing agent's
target is set to trace target, i.e., CMUTrace() here?

Thanks!!
yan


On Tue, 17 Jul 2001, Yan Yu wrote:

> Hello, all, 
>    I defined a new routing agent, in the recv() function of this agent, I
> want to send the packet to another agent, 
> 
> I modified the ~ns/tcl/lib/ns-lib.tcl, to 
> change the target of the my new routing agent to be the diffusion agent.
> say, 
> 
> $my_new_routing_agent target $diffusion_agent
> 
> so when I call "send( packet, handler )" in "recv()" function of my
> new_routing_agent, it is supposed be sent to the target, i.e., recv()
> function of the diffusion_agent. However, the diffusion agent never
> received the packet. when I traced it, I found the packet first arrived in
> CMUTrace::recv(), then LL:recv()..
> 
> Anyone have any idea why this happens? and if from the routing agent, I
> want to send the packets to a particular target agent, what should I do? 
>     
> Thanks a LOT in advance!!!!
> yan
>