Once again with the help of Poine (still owe ya that beer man), I
found my problem. So the way network communications is happening with
net_ctrls, and the FGNetCtrls object, the non-portability of the
mechanism is readily apparent. The size of the FGNetCtrls object is
744 bytes on my amd64 linux box, and 732 bytes on my x86 linux box. So
the mystery is solved, the mechanism for socket communication is not
cross platform friendly. I'm going to work around this for my masters
project since I'm short on time, but now I think I'm getting a good
idea of what to do after graduation :)

I think the netcode needs a revamp to make it cross-platform friendly.
My initial thoughts are using XDR because I've had good results with
it at work, and having some nice client classes to make development of
network clients easier.

Poine votes for using RPC. I thought this would be a good time for a
discussion on the wishes and desires for netcode. Any thoughts on the
subject?


-Drew/Dakster


On 3/8/06, Anders Gidenstam <[EMAIL PROTECTED]> wrote:
> On Wed, 8 Mar 2006, Drew Kirkpatrick wrote:
>
> > Last time I looked there wasn't any kind of htons kinda calls in the
> > receiving of net_ctrls data, although flightgear does do it for
> > outgoing net_fdm data, which kinda confused me. I'll have to take a
> > closer look tonight when I get home. Very perplexing problem :)
>
> In the current CVS version there seems to be such calls both in
> FGNativeCtrls::FGProps2NetCtrls() and in
> FGNativeCtrls::FGNetCtrls2Props().
>
> Hope that solves the problem and Good Luck! :)
>
> Best regards,
>
> Anders Gidenstam
> --
> ---------------------------------------------------------------------
> | Anders Gidenstam               | Tel: 031-230645     070-296 1707 |
> | Email: anders(at)gidenstam.org | WWW: www.cs.chalmers.se/~andersg |
> ---------------------------------------------------------------------
>
>
> -------------------------------------------------------
> 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-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
>


-------------------------------------------------------
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&kid0944&bid$1720&dat1642
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to