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

Re: [ns] global variable??



You can definitely use global variables. Access them in a proc using
"global" ... Check any sample code in teh example dir. 

Debo

On Wed, 25 Jul 2001, Kai Li wrote:

> Hi, 
> 
> I got one problem. I define a variable in class NsObject, then in the network 
> interface I change the value of this variable, then in Mac layer I want to see 
> this changed value but it seems unchanged. Now I wonder whether we can use 
> global variable in ns2, so if one layer change the value of this variable, 
> another layer will know it??
> 
> Thanx a lot for help,
> 
> Kai
> 
>