[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] Solution to wireless broadcast and its problem
Hello fellow ns-2 users,
I have a question regarding the broadcast in wireless network.
Has anyone tried the solution by Jeff Boleng?
(www.isi.edu/nsnam/archive/ns-users/webarch/2000/msg02832.html)
That message was posted one year ago. I found it in archive a few
days ago. Basically I am wondering how to tell an agent of its ll in
Otcl. If anyone not usig Jeff's method but has any idea of this question
please also help me.
I made the same modification in the ll.cc and also
I defined a new agent. When I run the tcl script there is always
mistakes. The reason I think is in the setting of ll. The lines are like
set sim0[new Agent/SImple]
$ns attach $n0 $sim0
set ll [$n0 set ll_(0)]
$ns at 0.0 "$sim0 set-ll $ll"
I got the error like "can't read ll_(0), no such variable"
I wonder where is the variable like ll_(0) defined and what
is the meaning of using index here. If I have many agents and I want all
of them to broadcast, should I set ll for each agent as ll_(1), ll_(2).....?
Thank you very much in anticipation.
Qing Xu