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

Re: [ns] two way communication



Hi,
I think that you should modify the C++ source code of the class Application,
introducing two pointers: each one points to an agent. Actually, the class
Application has instead only one pointer, called agent_, that points to the
lower agent.
Regards

Sandro Petrizzelli - Politecnico di Bari (Italy)
(http://users.iol.it/sandry)
([email protected])




----- Original Message -----
From: Alexander Rasin <[email protected]>
To: <[email protected]>
Sent: Tuesday, May 01, 2001 11:46 PM
Subject: [ns] two way communication


>
> Hi,
>
> I am trying to implement an Application that will be able to request and
> download files through ns simulation.
> That requires two way communication between my Applications, and I am
> unable to figure out how to do this.
>
> From what I can tell, one can only attach _one_ Agent to Application.
> The only way I can achieve two way communication is through attaching two
> agents (TCP and TCPSink) but only one of them can be attached to
> application.  Is there a way to attach both of them and be able to
> implement the interface that includes both send() and recv() methods?
>
> Thank you
> Alex.
>
>