Telnet usage: Difference between revisions

Jump to navigation Jump to search
Switch to {{gitorious merge request}} and {{flightgear source}} to fix all the broken Gitorious links.
(→‎subscribe and unsubscribe: Template:Caution → Template:Note)
(Switch to {{gitorious merge request}} and {{flightgear source}} to fix all the broken Gitorious links.)
Line 36: Line 36:
query this data via the property interface, or build some sort of nasal script.   
query this data via the property interface, or build some sort of nasal script.   


Multiple connections are possible at the same time. For an example in Java please refer to [http://gitorious.org/fg/flightgear/blobs/next/scripts/java/FGClient/src/FGFSDemo.java $FG_SRC/scripts/FGClient].
Multiple connections are possible at the same time. For an example in Java please refer to {{flightgear source|path=scripts/java/FGClient/src/FGFSDemo.java|text=$FG_SRC/scripts/FGClient}}.


For shell scripting purposes, [http://netcat.sf.net netcat] also works well.
For shell scripting purposes, [http://netcat.sf.net netcat] also works well.
Line 249: Line 249:
For example, to subscribe to all properties under '''/local-weather''', use '''subscribe /local-weather'''. To subscribe to all properties under '''/canvas''', use '''subscribe /canvas'''.
For example, to subscribe to all properties under '''/local-weather''', use '''subscribe /local-weather'''. To subscribe to all properties under '''/canvas''', use '''subscribe /canvas'''.


Also see: https://gitorious.org/fg/flightgear/merge_requests/28
Also see: {{gitorious merge request|proj=fg|repo=flightgear|mr=28|full=1}}


Note that it probably makes sense to use the raw (data) mode.
Note that it probably makes sense to use the raw (data) mode.
Line 286: Line 286:


Some links to source code examples in various flavours:
Some links to source code examples in various flavours:
* Perl - [http://gitorious.org/fg/flightgear/trees/next/scripts/perl/examples /source/scripts/perl/examples].
* Perl - {{flightgear source|path=scripts/perl/examples}}.
* Python - [http://gitorious.org/fg/flightgear/trees/next/scripts/python /source/scripts/python/]
* Python - {{flightgear source|path=scripts/python}}
* Java - [http://gitorious.org/fg/flightgear/trees/next/scripts/java source/scripts/java/]
* Java - {{flightgear source|path=scripts/java}}


You could just as easily interact with a running FlightGear instance using perl, C, C++, java, python, probably even <ack> visual basic or anything else that can do TCP/IP network communication ... matlab? netcat? twisted?
You could just as easily interact with a running FlightGear instance using perl, C, C++, java, python, probably even <ack> visual basic or anything else that can do TCP/IP network communication ... matlab? netcat? twisted?
Line 451: Line 451:


== Links ==
== Links ==
* httpd source - [http://gitorious.org/fg/flightgear/blobs/next/src/Network/httpd.cxx source/src/Network/httpd.cxx]
* httpd source - {{flightgear source|path=src/Network/http/httpd.cxx}}
* telnet (props) source - [http://gitorious.org/fg/flightgear/blobs/next/src/Network/props.cxx source/src/Network/props.cxx]
* telnet (props) source - {{flightgear source|path=src/Network/props.cxx}}




[[Category:Interfacing protocols]]
[[Category:Interfacing protocols]]

Navigation menu