KDEGames
8 #ifndef __KMESSAGESERVER_H__
9 #define __KMESSAGESERVER_H__
12 #include "libkdegamesprivate_export.h"
19 class KMessageServerPrivate;
195 EVNT_CLIENT_CONNECTED,
196 EVNT_CLIENT_DISCONNECTED,
197 EVNT_MAX_EVNT = 0xffff
210 virtual void Debug();
221 bool initNetwork(quint16 port = 0);
229 quint16 serverPort()
const;
242 bool isOfferingConnections()
const;
273 void removeClient(
KMessageIO *io,
bool broken);
278 void deleteClients();
287 void removeBrokenClient();
301 void setMaxClients(
int maxnumber);
308 int maxClients()
const;
315 int clientCount()
const;
335 quint32 adminID()
const;
342 void setAdmin(quint32 adminID);
369 virtual void broadcastMessage(
const QByteArray &msg);
379 virtual void sendMessage(quint32
id,
const QByteArray &msg);
400 virtual void getReceivedMessage(
const QByteArray &msg);
410 virtual void processOneMessage();
442 void messageReceived(
const QByteArray &data, quint32 clientID,
bool &unknown);
450 quint32 uniqueClientNumber()
const;
453 std::unique_ptr<KMessageServerPrivate>
const d;
A server for message sending and broadcasting, using TCP/IP connections.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:49:44 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.