> > Running FG under cygwin allows the socket output to be set to the
broadcast address, 192.xxx.xxx.255. But under linux Fg returns an error
> > that make_client_socket failed for the broadcast address. Looks like
cygwin is faking it.
>
> Not necessarily.  Did you declare that to be the broadcast address when
> you installed the network onto the adapter ?  UDP broadcast works fine.
> You're dealing with a network-aware operating system and if you ask
> it to do something impossible, it is bright enough to not try it.
>
Not so much faking it as using software to simulate broadcast, My
understanding is that unix/linux does not provide a comparable service in
the kernel, so the socket code needs the broadcast option set via the
setsockopt(..) call. When searching thru the plib code I did not see
any reference to the set option call (it's not mandatory).

I'll double check the setup, but ifconfig does show the broadcast address
for eth0 as

inet addr: 192.168.2.20  Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST

But starting fg with --opengc=socket,out,36,192.168.2.255,5800,udp  works
under cygwin but fails under linux.

Are you saying that UDP broadcast works in FlightGear or as a general
network capability?

Regards
John W.


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

Reply via email to