[Kde-games-devel] Sending a message to one KGame client

Neil Stevens kde-games-devel@mail.kde.org
Mon, 17 Feb 2003 20:19:20 -0800


=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Might as well make this a new thread, as I'm asking a specific technical=20
question instead of the broader philosophical and design questions.

After poking around in the system-only parts of the docs, I have an idea=20
that seems promising:  To send a secret message from server to player, the=
=20
server can get the KMessageServer from the KGame, then use use=20
KMessageServer::sendMessage to send the message.  To receive the message=20
on the client side, I have to get the KMessageClient from the KGame, and=20
hook up to KMessageClient::serverMessageReceived to receive the messages.

Is this correct?  And if so, do the client IDs in the KMessageServer match=
=20
the KPlayer::id()s?

Thanks again,
=2D --=20
Neil Stevens - neil@qualityassistant.com
"Distinctions by race are so evil, so arbitrary and insidious that a
state bound to defend the equal protection of the laws must not allow
them in any public sphere." -- Thurgood Marshall
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+UbRIf7mnligQOmERAlTvAJ90H9dctxwitkeiAklsxuWGmE5I2QCePTGg
EP9C0JY9i4aL6LSFTOEY0Ug=3D
=3DXBBJ
=2D----END PGP SIGNATURE-----