[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] passing parameter from TCL to C++
Dear all,
I'm a beginner in ns and tcl. I'm trying to create an agent called Proxy
in tcl:
set p0 [new Agent/Proxy]
$ns attach-agent $n0 $p0
For each proxy, I would like to associate some properties. Could somebody
please tell me how to create parameters in tcl, and later on pass that to
C++?
Specifically I want something like:
set p0 [new Agent/Proxy("blabla")] -- This syntax is wrong
And then use the constructor ProxyAgent::ProxyAgent("blabla") to create a
proxy agent. How should I do in this case?
Thanks a lot,
Jingwen