[ns] Re : TCL VAR bind C++ linking

2009-06-23 Thread El hadi Cherkaoui
--- En date de : Lun 22.6.09, El hadi Cherkaoui e_cherka...@yahoo.fr a écrit : De: El hadi Cherkaoui e_cherka...@yahoo.fr Objet: TCL VAR bind C++ linking À: NS user ns-users@ISI.EDU Date: Lundi 22 Juin 2009, 19h04 hi every one, I have a CBR source and i set rate_ at 160 kbps. is it

Re: [ns] Re : TCL VAR bind C++ linking

2009-06-23 Thread Scott Novich
Yes - go into your NS src then open Tools/CBR_Traffic.cc Create a timer (see NS2 Manual / follow the tcp.cc/tcp.h code as an example) that triggers every x seconds, and use a random variable function to set the rate variable. You may need to create a header file for CBR_Traffic.cc - .h and