Telnet usage: Difference between revisions

Jump to navigation Jump to search
(http://www.mail-archive.com/flightgear-devel@flightgear.org/msg27071.html)
Line 215: Line 215:


There are a couple examples in the scripts section of the FG source code. There is a chunk of perl (telnet.pl) you can include to make access from a perl script mostly trivial. I think there is a java example and perhaps something for python.
There are a couple examples in the scripts section of the FG source code. There is a chunk of perl (telnet.pl) you can include to make access from a perl script mostly trivial. I think there is a java example and perhaps something for python.
You should have a look at fgfsclient.cxx in the FG/script/exmaple subtree (on the cvs). The script/python subtree has also good examples
of what can be done using the telnet protocol. The server side of the "telnet" protocol can be found in the src/Network/props.* files.
Also FG must be lauched with --props=5501 to activate the server side.
Now you juste have to find the properties that you need and the property browser is handy for that.


Some links to source code examples in various flavours:
Some links to source code examples in various flavours:

Navigation menu