how to add a member function to Simulator

richard M8702028@mail.ntust.edu.tw
Thu, 09 Aug 1999 20:16:52 +0800


hi:

I want to add a member function(Tcl script) in Class
Simulator(ns-lib.tcl) like

Simulator instproc duplex-intserv-link { n1 n2 bw pd sched signal adc
args } {
        eval $self duplex-link $n1 $n2 $bw $pd intserv $sched $signal
$adc $args
}

No matter  add this code to ns-lib.tcl or my Tcl scripts and recompile
ok(make depend;make),it cannot find the c++ object which compiled ok!.

Please tell me the right way to add/modify member function in ns-lib.tcl

Thanks a lot!


Richard Liu