[ns] On-the-fly ns2 interpreter

2011-12-13 Thread Nikhil Karnad
Hi everyone, Firstly, great job to the team on the wiki, forums, and mailing lists. It really helped me to get to speed with ns2. I'd like to use ns2 along with external packet data sources in real-time, e.g. a message received on a socket on my linux PC should be sent over the network currently

Re: [ns] On-the-fly ns2 interpreter

2011-12-16 Thread Nikhil Karnad
Hi all, I fixed this problem by creating a shared library of ns (similar to the cygwin approach), i.e. libns.so, and linking it to my code. Upon closer inspection, ~ns/lib/ns-lib.tcl:128 has "class Simulator" commented. It is instead provided by an OTcl class in ~ns/common/simulator.[h/cc]. Dyna