[ns] trouble with bind
Stankiewicz Bredkjaer
stan.bred at yahoo.com
Thu Mar 6 09:34:24 PST 2008
Hi,
that's the way I've initialized them in the tcl script, but it didn't work...
One have suggest to write a function in c++ wich get the arguments from the command function, i will try it.
The alternative with "bind" seemed much easier, therefore i would appreciate any hint anyway.
Thx,
Stan
Arturo Servin <arturo.servin at gmail.com> wrote:
How are you setting the variables in your tcl script?
It must someting like:
set ag1 [new Agent/HIGH_AVAIL]
$ag1 set timeOut_ 10
-as
On 5 Mar 2008, at 22:05, Stankiewicz Bredkjaer wrote:
>
> Hello everybody,
>
> i have some problems with the "bind" function when used to bind
> variables I've defined.
> i.e. I've created a new Agent called HIGH_AVAIL with 2 new integer
> variables, which I've binded in the constructor like this:
>
> bind("timeOut_", &timeout_);
> bind("warnTime_", &warntime_);
>
> after initialization in "ns-default.tcl" and compiling, these
> variables still get the default values even if I set new different
> ones in the tcl script.
> can someone please help me? I am desperate now, since I've tried
> everything to fix it, but it still don't work!
>
> Many have had the same problem as I could notice from the archives,
> but there weren't no solutions for this, can someone please help?
>
> Thanks.
>
> Stan.
>
>
> ---------------------------------
> Looking for last minute shopping deals? Find them fast with Yahoo!
> Search.
---------------------------------
Never miss a thing. Make Yahoo your homepage.
More information about the Ns-users
mailing list