You just:
a) get a pointer to the generator and modify its rate_ variable;
b) modify it in TCL as normal, and call this code with tcl.eval("...")
as explained here:
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_tips.html#_Toc124667333
If you find this useful, please contribute to the ns2 wiki with the solution
Pedro Vale Estrela
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Albalas F (AT)
> Sent: terça-feira, 29 de Agosto de 2006 22:48
> To: ns-users@ISI.EDU
> Subject: [ns] change the CBR bit rate
>
>
> Hi all,
>
>
>
> How can I change (increase or decrease ) the Traffic bit rate during the
> simulation, I mean at the c++ programme.
>
>
>
> Thanks
>
> Firas
>
>