Hi all, Actually I am trying to add a new Agent and I did all steps according to ns-2 manual but now when I am trying to access this Agent in my tcl script I come to this error:
invalid command name "Agent/UDP/dns_server" while executing "Agent/UDP/dns_server create _o36 " invoked from within "catch "$className create $o $args" msg" invoked from within "if [catch "$className create $o $args" msg] { if [string match "__FAILED_SHADOW_OBJECT_" $msg] { delete $o return "" } global errorInfo error "class $..." (procedure "new" line 3) invoked from within "new Agent/UDP/dns_server" invoked from within "set dns0 [new Agent/UDP/dns_server]" (file "test.tcl" line 38) can you tell me what's wrong with my new agent? Thanks, Samaneh --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.