Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Howto talk:Parsing binary data received via UDP in C

From FlightGear wiki
Jump to: navigation, search

TODO

Cquote1.png Feel free to get in touch if you need help using the wiki or adding your code there (a few more comments, and maybe a complete/self-contained snippet of code might be a good idea).


To be really useful in the long-term, it would be great to make this cross-platform, and maybe getting it committed to $FG_SRC/contrib - the easiest way for making this platform agnostic would probably be using the SimGear SGSocketUDP API: http://api-docs.freeflightsim.org/simge ... etUDP.html

You'll find a self-contained unit test that you can easily adapt to add your own code here: flightgear/simgear/ddd9691439e7f632d927b2b7281b3590bf7219cc/simgear/io/socktest.cxx

the relevant cmake/build system changes can be seen here: flightgear/simgear/ddd9691439e7f632d927b2b7281b3590bf7219cc/simgear/io/CMakeLists.txt#l56
Developing_using_CMake


Cquote2.png