Take FTP as an example, the FTP (application) has a variable called
agent_ which points to the agent (e.g. TCP) it attached. On the other
hand, the agents will have a variable called app_ that points to the
application it is attached to. So you can use it to get/change the
variable, either directly or by calling a suitable function.

[EMAIL PROTECTED] wrote:

>Dear All,
>
>I'm looking for a good knowledge about how to share the variables between a two
>layers of ns2 layers.
>
>Such as: I need to share an information (variable) between the MAC layer and 
>FTP
>layer, how this could ne done insdie the NS2.
>
>By the way, my environment is: ns2-allinone-2.29, cygwin, and WinXP.
>
>Kind Regards
>
>----------------------------------------------------------------
>This message was sent using IMP, the Internet Messaging Program.
>
>  
>

Reply via email to