Hello everybody! I'm trying to run a simulation using the TORA protocol and I have made the necessary changes to the tora.h and tora.cc file. In tora.cc i have added the lines: if (strcmp(argv[1], "port-dmux") == 0) { if ((obj = TclObject::lookup(argv[2])) == 0) { fprintf(stderr, "%s: %s lookup of %s failed\n", __FILE__, argv[1], argv[2]); return TCL_ERROR; } port_dmux_ = (NsObject *) obj; return TCL_OK; } in the toraAgent::command(int argc, const char*const* argv) function. In the tora.h file, i have added the NsObject * port_dmux_ as a private member. But I get the following error: (_o17 cmd line 1) invoked from within "_o17 cmd port-dmux _o32" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o17" line 2) (SplitObject unknown line 2) invoked from within "$agent port-dmux $dmux_" (procedure "_o14" line 11) (Node/MobileNode add-target-rtagent line 11) invoked from within "$self add-target-rtagent $agent $port" (procedure "_o14" line 23) (Node/MobileNode add-target line 23) invoked from within "$self add-target $agent $port" (procedure "_o14" line 15) (Node attach line 15) invoked from within "$node attach $ragent [Node set rtagent_port_]" (procedure "_o3" line 72) (Simulator create-wireless-node line 72) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 23) (Simulator node line 23) invoked from within "$ns_ node" ("for" body line 2) invoked from within "for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion set r [$node_($..." (file "50nodes_tora_p0.tcl" line 145) What other modifications should i make? I really hope someone can help me. Thank you in advance! Regards. Alexandra
Alexandra Cioroianu --------------------------------- How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.