[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: interfacing C++ and Otcl objects ...
Rajib,
Take a look at ns documentation (1.2.4 command methods) which
describes how to invoke c++ methods from tcl.
you can also take a look at route.cc and ns-route.tcl files for example of
how the routing computation is done in c++ and is used by the interpreted
object "routelogic" in tcl.
Hope this helps,
Padma.
On Wed, 25 Feb 1998, Rajib Ghosh wrote:
> Hi:
>
> I have an array of integers in a C++ object. Can someone tell me how to
> initialize it from inside the ns script? Alternatively, is it possible to call a
> C++ function (with integer arguments) from the ns script?
>
> Thanks for u'r time.
>
> Rajib.
> --
> -----------------------------------------------------------------
> RAJIB GHOSH Grad. Student, Deptt. of Computer Science
>
> Office: Residence:
> Bryan 410
> Washington University 6418 Enright Avenue
> Campus Box 1115 University City
> St. Louis, MO 63130 St. Louis, MO 63130
>
> Tel.- (314) 935-4163 (O), (314) 863-0418 (R)
> Fax.- (314) 935-7302 (O)
>
> mailto:[email protected] http://dworkin.wustl.edu/~rajib/
> _________________________________________________________________
>
-----------------------------
Padmaparna Haldar
ISI/USC.
310.822.1511 #352