Curtis Olson wrote:
>
> Let us know what you come up with on the broadcast stuff.
>
> Regards,
>
> Curt.
>
Okay, here's the answer...

In plib line #80

  if (host[0] == '<' && strcmp(host, "<broadcast>") == 0)
    sin_addr = INADDR_BROADCAST;

expects the string argument as noted above.  There does not appear to be any
option to set the address expicitly, as in 192.168.2.255, which results in
an error and program termination. SimGear expects the string argument to be
"broadcast" and passes that on to plib. If you try to set the string in the
command option; e.g. native-fdm=socket,32,<broadcast>,6000,udp then
FG/SimGear complains and exits.

So the fix can be in either place, change SimGear to pass the string as
required or change plib to

if ( strcmp(host, "broadcast") ==0)

you make the call

Regards
John W.


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to