[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] adding new proc to Node!
Hi all,
I have been experiencing a weird problem.
I have been trying to add a new tcl command to Node with 4 parameters,
$node_ create-conn arg1 arg2 arg3 arg4
I tried implementing first by adding an OTcl instproc in ns-node.tcl.
My script kept crashing on this procedure call. Then I tried to
add this command into Node::command in node.cc. This time, I figured
that all the argv's except for argv[0] and argv[1] had garbage
although argc was = 6.
I wonder, where the method command for node itself gets called. Looks
to me like there is a memory allocation problem or I don't know what
I am doing wrong.
I will really appreciate if someone can give me any kind of a hint,
suggestion to get through this problem.
Thanks,
Sowmya.
*******************************************************************************
Sowmya Manjanatha : University of New Hampshire
Major : Computer Science
***********************************************
email : [email protected]
*******************************************************************************