Hi, all!

I'm trying to implement an agent and I want to send a packet every
time I issue some command, like this:

$ns at 0.0 "$c0 request [$n1 id] a_temp_string"
# .... some other commands
$ns at 5.0 "$c0 request [$n1 id] a_temp_string"

Unfortunately, ns-2 won't transfer the second (@5.0 one) command to my
C++ code implementing sending packets.
Interesting, when I modified the script like the following one:

$ns at 0.0 "$c0 request [$n1 id] a_temp_string"
# ... some other commands
$ns at 5.0 "$c0 request [$n1 id] b_temp_string"

Then ns-2 runs as expected.

Does ns-2 automatically drop identical commands? How could I avoid that?

Thank you very much!

Regards, Kenneth

Reply via email to