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

[ns] attach-agent related



Consider the following

set node1 [$ns node]

set myagent [new Agent/MyAgent]
$ns attach-agent $myagent $node1

I want to attach on node1 a tcp agent which depends on
MyAgent. I mean that i want first the pkts passing
from MyAgent and then to the tcp agent. What shall i
do??

set tcp1 [new Agent/Tcp]
$ns attach-agent $tcp1 $myagent

or 

set tcp1 [new Agent/Tcp]
$ns attach-agent $tcp1 $node1

Thanks
Billy



__________________________________________________
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/