Drew Kirkpatrick wrote:
Yeah, I'm using the native-fdm class as the data structure to receive the binary data, I think that's the data the udp packets is sending out when you register the native-fdm/socket/out bit to fgfs. Someone correct me if I'm wrong here? I just have my syntax boned up and am not reading the binary data correctly. Can't find my book with sockets stuff around here, think I left it at work. Anyone have an example of reading a udp stream with native-fdm protocol?
By default I believe FG converts the data to network byte order, so you will probably need to convert the numbers back to your native endianess before they can be used. You could look in native_fdm.cxx to see how we use htonl() and friends.
Curt. -- Curtis Olson http://www.flightgear.org/~curt HumanFIRST Program http://www.humanfirst.umn.edu/ FlightGear Project http://www.flightgear.org Unique text: 2f585eeea02e2c79d7b1d8c4963bae2d ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Flightgear-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-users
