6,566
edits
(→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 | 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: | 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 - | * Perl - {{flightgear source|path=scripts/perl/examples}}. | ||
* Python - | * Python - {{flightgear source|path=scripts/python}} | ||
* 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 - | * httpd source - {{flightgear source|path=src/Network/http/httpd.cxx}} | ||
* telnet (props) source - | * telnet (props) source - {{flightgear source|path=src/Network/props.cxx}} | ||
[[Category:Interfacing protocols]] | [[Category:Interfacing protocols]] |