Thanks a lot.


________________________________
 From: Basma Bejaoui <bejaoui.ba...@gmail.com>
To: itishi saxena <itish...@yahoo.com> 
Sent: Friday, 30 November 2012 11:34 PM
Subject: Re: [ns] how to get value from .cc file to tcl script?????
 

http://mailman.isi.edu/pipermail/ns-users/2006-February/054169.html


2012/11/30 Basma Bejaoui <bejaoui.ba...@gmail.com>

try to flow this, hope that helps !!
>
>
>
>2012/11/28 itishi saxena <itish...@yahoo.com>
>
>
>>Thanks for your reply...........
>>
>>this value variable is declared inside .cc file or .tcl script.
>>
>>I hv written this code inside the .cc file.... now how this will work?
>>
>>Do i need to create another variable in the tcl script to print this value?
>>
>>If you tell me the steps it would appreciated..... lets assume whenever void 
>>AODV::recv() function executed I
>>write
>>value=CURRENT_TIME,
>>
>>Now, how this value can be read through my tcl script?
>>
>>
>>with best Regards.
>>
>>
>>
>>
>>
>>________________________________
>> From: "behnaz.bostanip...@unil.ch" <behnaz.bostanip...@unil.ch>
>>To: itishi saxena <itish...@yahoo.com>; "ns-users@ISI.EDU" 
>><ns-users@ISI.EDU>; "mohit.ni...@yahoo.com" <mohit.ni...@yahoo.com>
>>Sent: Tuesday, 27 November 2012 5:45 PM
>>Subject: re: [ns] how to get value from .cc file to tcl script?????
>>
>>
>>Hi,
>>
>>Tcl& tcl=Tcl::instance();
>>tcl.resultf("%1.1f",value);
>>
>>where resultf(const char* fmt,...) uses the C++ format
>>“fmt” of printf to passe a string to the TCL
>>interpreter.
>>
>>There are other functions similar to resultf. I am sure you
>>can find them easily on the Web.
>>
>>Best,
>>Behnaz
>>
>>
>>
>>----- Original Message -----
>>Expéditeur: itishi saxena <itish...@yahoo.com>
>>à: "ns-users@ISI.EDU" <ns-users@ISI.EDU>,
>>"mohit.ni...@yahoo.com" <mohit.ni...@yahoo.com>
>>Sujet: [ns] how to get value from .cc file to tcl
>>script?????
>>Date: Tue, 27 Nov 2012 09:11:33 +0800 (SGT)
>>
>>> Hello Friends,
>>>
>>> How it is possible to check a value of a parameter in the
>>> tcl script from a .cc code? e.g. in AODV i have declared a
>>> variable and assigning a value at certain point. I want
>>> tcl script can read that value so that I can perform some
>>> other operation in tcl script.
>>>
>>> I know use of bind( "x_" , "&x") and it works like passing
>>> value from tcl to .cc, what if I want other way around
>>> from .cc to tcl??
>>>
>>> Any clue will be appreciated.
>>>
>>> with Regards.
>
>
>
>-- 
>
>Cordialement
>Basma Bejaoui
>Ingénieur Informatique, Génie Télécommunication et Réseaux 
>+216  20 09 52 02 
>


-- 

Cordialement
Basma Bejaoui
Ingénieur Informatique, Génie Télécommunication et Réseaux 
+216  20 09 52 02 

Reply via email to