[Kde-games-devel] Discovery of LAN servers for kbattleship

Albert Astals Cid tsdgeos at yahoo.es
Tue Dec 14 22:30:09 CET 2004


A Dilluns 13 Desembre 2004 16:12, Jakub Stachowski va escriure:
> Hello,
>
> Attached patch allows kbattleship to announce game server on LAN. Client is
> able to discover active servers so user doesn't have to know ip and port.
> kdnssd library (from kdelibs) is used for that.
> The same could be done for lskat, kwin4 and possibly atlantik.
> Comments? Suggestions?

I've not compiled the patch so i'm speaking only having read it.

A question: Is building kdnssd in kdelibs obligatory, i mean, if it is 
optional, kbattleship will not build on people with kdnssd compiled, no?

A suggestion, i see in kclientdialog.h you have defined BATTLESHIP_SERVICE, 
but in kbattleshipserver.cpp you use the literal "_kbattleship._tcp", could 
you use the same define in both places?

Also #define is usually not used in kde, it is prefered to use 
static const char* BATTLESHIP_SERVICE = "_kbattleship._tcp";

Albert


More information about the kde-games-devel mailing list