Re: [Widelands-public] New networking code
Status: Beta
Brought to you by:
sirver
From: Stefan B. <st...@up...> - 2004-12-31 12:26:59
|
On Fri, 31 Dec 2004, Josef Spillner wrote: > Am Freitag, 31. Dezember 2004 12:32 schrieb Stefan Boettner: >> In particular there was no way to send broadcast packets to all >> interfaces, which is required for discovery of open games in a local >> network. > > In BSD there is getifaddrs() and I think most Linuxes support this too. At least it doesn't have a manpage here. Therefore I assume it doesn't exist. I used if_nameindex() and retrieved broadcast-addresses using ioctls. On Windows I changed to INADDR_BROADCAST (as SDL_net used to use), because Microsoft says if_nameindex() isn't supported. > It would probably be a good idea to support Zeroconf and let it handle the > game discovery. Howl and Rendezvous are usually used in Linux and MacOS > systems, about Windows I don't know. Discovery is kind of working right now and I would not like to change it unless it is really needed. Some testing would be appreciated though. Stefan |