[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling C++ functions at the Tcl front end



double time = Scheduler::instance().clock();
at the C++ level

$ns at $time [$model call-function]
from the command function of model
at the Tcl level

the command method is used to make C++ calls from OTcl; like in:
$mac target $ll

for example.

> X-Authentication-Warning: mash.CS.Berkeley.EDU: majrdomo set sender to 
[email protected] using -f
> Date: Mon, 31 Jan 2000 17:22:49 +0100
> From: "Niko A. Fikouras" <[email protected]>
> X-Accept-Language: en
> MIME-Version: 1.0
> To: [email protected]
> Subject: Calling C++ functions at the Tcl front end
> Content-Transfer-Encoding: 7bit
> 
> Hi,
> 
> my question is the following. I have a model that is consisted of
> several C++ functions.
> All of these functions are called by the model when a certain event
> occurs i.e. the receipt
> of a packet. But, I wish to place a call to a certain function
> explicitly at certain time points.
> 
> How could this be made.
> 
> Thanks in advance,
> 
> --Niko

Tarik