[ns] attach-agent related

billy dimi kldannys@yahoo.com
Thu, 1 Feb 2001 02:40:26 -0800 (PST)


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/