[ns] How to realize many connection to one agent

2006-08-30 Thread Przemysław Krekora
I want to create agent which will have ability to response on the request from any agent. Let's say that below is example (which of course doesn't work). I would like that for example that TCPSink could response on request from tcp1 and tcp2. What should I do ? Example Agent1 comunicate

Re: [ns] How to realize many connection to one agent

2006-08-30 Thread krekora
mply define a agent and a traffic application, just > like in the ns-tutorial in your ns2 folder... > > > Original-Nachricht > Datum: 30 Aug 2006 15:16:13 +0200 > Von: "Przemysław Krekora" <[EMAIL PROTECTED]> > An: ns-users@ISI.EDU >

Re: [ns] How to realize many connection to one agent

2006-08-30 Thread Robertus Probokoesoemo
You have to change the destination address and port from the ip header packet in the sink agent (Agent3) every time before you sent the packet. For example: void TcpSink::ack(Packet* opkt) { Packet* npkt = allocpkt(); // opkt is the "old" packet that was received // npkt