The point here is that you want to execute your local apps *through* your nodes, not independently *within* the program. In general, the command to execute an external program through an NS-2 script is to use the exec command followed by the program name and any parameters that it may need.
However, your case is a bit more complicated since you would like to have your node to behave *through* your program (making connections, sending traffic to other nodes, receiving traffic from other nodes, etc). However, I think that if you want to customize NS, you would have to tamper with the C++ files and re-configure, re-make NS. An intermediate solution would be to *exec* your programs through NS and communicate the (any) results through files (text or not), *or,* use C++ coding to modify the node behaviour through external calls to your programs (I suppose you have the source code), *or* if your programs were written in a C-style language, to "insert" them in the node configuration - programming files. I am afraid that (as far as I know) there is not a straightforward way to do this kind of thing you want. -Fk On 2/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > ---------- Forwarded message ---------- > From: "George P Nychis" <[EMAIL PROTECTED]> > To: ns-users@ISI.EDU > Date: Mon, 13 Feb 2006 19:59:40 -0500 (EST) > Subject: Re: [ns] get NS2 to run personal/local application? > I read Marcs tuturial now, and I still do not understand how you have a > virtual node run a local program. Every single time I see them running an > NS2 simulation, it is always using some TCP or UDP setup... I have my own > programs that will create their own sockets and generate their own > traffic. What I am using NS for is to simulate latency and such. > > > > Hi George, > > > > I recommend that you take the time to work your way through Marc's > > tutorial. I belive you will understand a lot of these subjects that you > > are asking about if you do. > > > > Henrik > > > > George P Nychis wrote: > >> > >> Hey guys, > >> > -- Filippos N Kolovos Software Systems Analyst & Engineer M.Sc. (Eng.) in Data Communications Communication & Networking Department University of Macedonia Library Egnatia 156, P.O.Box 1591 540 06 Thessaloniki, Greece E-Mail: [EMAIL PROTECTED], [EMAIL PROTECTED] Phone: +30-2310-891-830 ----------------------------------------------