Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2003:
[Freeciv-Dev] Re: (PR#6707) Announce server on LAN
Home

[Freeciv-Dev] Re: (PR#6707) Announce server on LAN

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#6707) Announce server on LAN
From: "andrearo@xxxxxxxxxxxx" <andrearo@xxxxxxxxxxxx>
Date: Mon, 17 Nov 2003 08:09:11 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=6707 >

I've had a look at how Quake locates its servers,
from the GPL'd source in Quakeforge;
It broadcasts to INADDR_BROADCAST (255.255.255.255),
from what I could gather from this file:
http://www.quakeforge.net/cgi-bin/viewcvs.cgi/quakeforge/libs/net/nm/net_udp.c

Anyway, using a broadcast instead of a multicast would
avoid the problems of old OS'es not supporting multicast.

The only problem then, is that broadcasting might require root privileges
on some BSDs, according to Todd Goodman. I've not found any facts about
this by websearching. My testing on NetBSD didn't require root access to
broadcast to INADDR_BROADCAST.

So; multicast or broadcast?

 Andreas Røsdal




[Prev in Thread] Current Thread [Next in Thread]