[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] Trace Time in Multicast
Hi!!
Now..I simulate multicast related source using ns(DM.tcl) in Linux.
In inner node(maybe, routers), I want to forward data to child nodes in tree
after some processing..
Some processing is to execute .exe(crypto++) program which is outside of
ns...
So..I added code in "trace.cc" like this..
TCL::instance().evalf("puts $f [exec /crypto41/cryptest.exe e in.dat
out.dat]")
I thought... after executing this code, there is some delays before
executing Scheduler::instance().clock()(receive time).
But ...This code did not affect simulation time..
How can i affect " exec function result" in simulation time???
( Also I used another method..
In trace.cc, I stored "exec" execution result value in another variable.
And when print trace result, sprint( "%c "Timeformat".........
,
pt->round(Scheduler::instance().clock()),
----------------------------------
------
change to like thie :
pt->round(Scheduler::instance().clock() + variable)
but error....-_-;;
)
please help me!!!!!!