[ns] Send TcL Commands to NS during simulation runtime
Tom Hewer
tomhewer at mac.com
Wed Jan 16 08:43:54 PST 2008
Hi,
I have been trying various options for sending TcL messages to NS
during runtime (i.e. to send an updated location to a mobile-node) but
as yet have had no success.
The ultimate goal is a way to couple a mobility generator to NS and
run them both live.
Has anyone yet achieved this, and if so, how.
The options I have been working on are:
1. Pause the scheduler and then send events directly to the scheduler
stack <-- not working well, as the halt command just terminates runtime
2. Setup the Tcl script to read from stdin and then send commands to
it <-- NS doesn't completely parse the tcl script as is waiting for
more input and so never gets to simulation runtime
3. I believe there must be a way to use the emulate mode of NS to send
data in through a socket that is interpreted by NS as a command, but
haven't a clue where to start on this.
Any help would be really really appreciated!
Many thanks,
Tom.
Tom Hewer
PhD Research Student
University College London
Tel: +44 (0) 788 784 1692
E: T.Hewer at CS.UCL.ac.uk
W: http://CCS.Chem.UCL.ac.uk
More information about the Ns-users
mailing list