hi to all... here i have to execute some piece of code in tcl script, after satisfying a condition in classifier.cc like as below
tcl script: {* *set udp0 [new Agent/UDP] $ns attach-agent $n(24) $udp0 set cbr [new Application/Traffic/CBR] $cbr attach-agent $udp0 set null0 [new Agent/Null] $ns attach-agent $n(9) $null0 $ns connect $udp0 $null0 } Classifier.cc: void Classifier::recv(Packet* p, Handler*h) { if( condition) {if it enters the condition i have to start $ns "start cbr0" i cant say time....} } how to do this please tell me in detail