hello all
i am working on ns2.35 installed on ubuntu 14.04
i am implementing new manet protocol and just need to send the value of (number of node) from tcl to c++ .. so can any one help me with it please?
i tried this but not sure it true or not
Code:
#include <god.h>
God::instance()->nodes();
tcl scripts
Quote:
set god_ [create-god $opt(nn)]
for {set i 0} {$i < $opt(nn) }{incr i}
{
set node_($i)
[$ns_ node] $node_($i) random-motion 0 ;# disable random motion
$god_ new_node $node_($i) }
|