[ns] Connect agents dynamically

2007-05-23 Thread ovsbharath
Hi, I need to connect agents dynamically for my purpose, so i have changed the agent.cc code as suggested by the comments in it. /* This function is a placeholder in case applications want to dynamically * connect to agents (presently, must be done at configuration time). */ void Agent::connect

Re: [ns] Connect agents dynamically

2007-05-23 Thread Timo Reimann
[EMAIL PROTECTED] wrote: > > I need to connect agents dynamically for my purpose, so i have changed the > agent.cc code as suggested by the comments in it. > > /* This function is a placeholder in case applications want to dynamically > * connect to agents (presently, must be done at configuratio

Re: [ns] Connect agents dynamically

2007-05-24 Thread ovsbharath
Thank you Timo for your reply. Some more querries... The agent.h file defines the argument to connect as nsaddr_t and not ns_addr_t. (My ns version is ns-2.30) And i need to dynamically connect src agent to dst agent, and not agent to node (which is what i think i was doing). i.e i need to per

Re: [ns] Connect agents dynamically

2007-05-24 Thread Timo Reimann
[EMAIL PROTECTED] wrote: > The agent.h file defines the argument to connect as nsaddr_t and not > ns_addr_t. (My ns version is ns-2.30) Same here, I'm using 2.30 as well. You need to change the definition/declaration to ns_addr_t. > And i need to dynamically connect src agent to dst agent, and