Hello all, # connection 1 set udp_(1) [new Agent/UDP] set null_(1) [new Agent/Null] $ns_ attach-agent $node_(0) $udp_(1) $ns_ attach-agent $node_(1) $null_(1) set cbr_(1) [new Application/Traffic/CBR] $cbr_(1) set packetSize_ 512 $cbr_(1) set interval_ 0.25 $cbr_(1) set random_ 1 $cbr_(1) attach-agent $udp_(1) $ns_ connect $udp_(1) $null_(1) $ns_ at 1.0 "$cbr_(1) start" $ns_ at 5.0 "$cbr_(1) stop"
the above tcl snippet will set up a UDP/CBR connection between nodes 0 (sender) and 1 (receiver), from 1.0 to 5.0 seconds. How would I -- on node 0, through C++ --, access the attached UDP agent to check whether it is transmitting or not? thanks in advance for any pointers. sergio