[ns] tcl code

El hadi Cherkaoui e_cherkaoui at yahoo.fr
Tue May 5 01:59:44 PDT 2009


hi all,

can u tell me what this line do ?

# creation of the MutiFaceNodes
$ns node-config  -multiIf ON                            ;#to create MultiFaceNode
set multiFaceNode [$ns node 4.0.0] 
$ns node-config  -multiIf OFF  
  
$multiFaceNode add-interface-node $iface1

set tcp_(0) [new Agent/TCP/FullTcp]
$multiFaceNode attach-agent $tcp_(0) $iface1    ;# the interface is used for sending
set app_(0) [new Application/TcpApp $tcp_(0)]
puts "App0 id=$app_(0)"

i don't understand the line : $multiFaceNode attach-agent $tcp_(0) $iface1  usually we use 
$ns attach-agent $tcp(0) $interface  No??

best regards .



      


More information about the Ns-users mailing list