Re: [PATCH] Avahi support for gnome-games



CORRECTION:

the service *type* is _26479gnomegames._udp
the service *name* is gnomegames by default

Anyway it does not make sense to prepend the
port to the service type.

_gnome-nibbles._udp or _gnome-reversi._udp

would make sense to me...

Daniel S. Haischt schrieb:
My current issue is - why is there a need to prepend
the port to the service name so it looks something
like ...

 -> _26479gnomegames._udp

And if you start several gnome games, there's an issue
if someone uses the gnomegames service name for each name.

Hence, I was suggesting service subtypes, but I am
completly fine with using TXT records.

And btw, Johannes can you reply to the mailing list as well?

Johannes Hölzl schrieb:
Hi,

Am Donnerstag, den 16.02.2006, 14:13 +0100 schrieb Daniel S. Haischt:
Hello,

[..]
  b) Why is the user allowed to choose the service name?
     What happens if she starts Gnibbles and Reversi, both
     with the same Zerocnf service name?


  c) Wouldn't it be better to force a particular Zeroconf
     service name like...

     _gnibbles._gnomegames._udp
     _iagno._gnomegames._udp

Why not use the TXT field to distinguish the exact game and only have
_gnomegames._udp.
TXT: gnomegame=gnibbles

There is also the possibility in DNS-SD to give every service an user
visible name. For example an Avahi-Configuration for a game could look
like:

<service-group>
    <name>Joe against You</name>
    <service protocol="ipv4">
        <type>_gnomegames._udp</type>
        <port>26479</port>
        <txt-record>gnomegames_type=gnibbles</txt-record>
    </service>
</service-group>

Where <name> is the user visible name, and txt-record specifies the
exact gnome-game type. I think Avahi provides the API to configure this
information via D-BUS.

The Port of the game-server can be selected arbitrarily.

regards,
    Johannes Hölzl









--
Mit freundlichen Gruessen / With kind regards
DAn.I.El S. Haischt

Spammers, please please send any mail to:
Daniel S. Haischt <me_c daniel stefan haischt name>

Want a complete signature??? Type at a shell prompt:
$ > finger -l haischt daniel stefan haischt name



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]