kmessageclient.cpp
162 void KMessageClient::sendForward (const TQByteArray &msg, const TQValueList <TQ_UINT32> &clients)
205 { // must NOT happen, since we check in processIncomingMessage as well as in processFirstMessage
297 kdWarning (11001) << k_funcinfo << ": Extra data received for message ID " << messageID << endl;
323 kdDebug (11001) << k_funcinfo << ": timer single shot for removeBrokenConnection"<<this << endl;
void eventClientDisconnected(TQ_UINT32 clientID, bool broken)
This signal is emitted when the server has lost the connection to one of the clients (This could be b...
void sendBroadcast(const TQByteArray &msg)
Sends a message to all the clients connected to the server, including ourself.
Definition: kmessageclient.cpp:150
void sendForward(const TQByteArray &msg, const TQValueList< TQ_UINT32 > &clients)
Sends a message to all the clients in a list.
Definition: kmessageclient.cpp:162
unsigned int delayedMessageCount() const
Definition: kmessageclient.cpp:368
This class implements the message communication using a TCP/IP socket.
Definition: kmessageio.h:170
void aboutToDisconnect(TQ_UINT32 id)
This signal is emitted right before the client disconnects.
This class implements the message communication using function calls directly.
Definition: kmessageio.h:297
void addClient(KMessageIO *)
Adds a new KMessageIO object to the communication server.
Definition: kmessageserver.cpp:170
virtual void removeBrokenConnection()
This slot is called from the signal KMessageIO::connectionBroken.
Definition: kmessageclient.cpp:321
void processFirstMessage()
Called from unlock() (using TQTimer::singleShot) until all delayed messages are delivered.
Definition: kmessageclient.cpp:305
void adminStatusChanged(bool isAdmin)
This signal is emitted when this client becomes the admin client or when it loses the admin client st...
void disconnect()
Corresponds to setServer(0); but also emits the connectionBroken signal.
Definition: kmessageclient.cpp:342
This abstract base class represents one end of a message connections between two clients.
Definition: kmessageio.h:56
void eventClientConnected(TQ_UINT32 clientID)
This signal is emitted when another client has connected to the server.
A server for message sending and broadcasting, using TCP/IP connections.
Definition: kmessageserver.h:175
const TQValueList< TQ_UINT32 > & clientList() const
Definition: kmessageclient.cpp:113
void serverMessageReceived(const TQByteArray &msg, bool &unknown)
This signal is emitted on every message that came from the server.
void lock()
Once this function is called no message will be received anymore.
Definition: kmessageclient.cpp:354
void forwardReceived(const TQByteArray &msg, TQ_UINT32 senderID, const TQValueList< TQ_UINT32 > &receivers)
This signal is emitted when the client receives a forward message from the KMessageServer, sent by another client.
void broadcastReceived(const TQByteArray &msg, TQ_UINT32 senderID)
This signal is emitted when the client receives a broadcast message from the KMessageServer, sent by another client.
void connectionBroken()
This signal is emitted when the connection to the KMessageServer is broken.
void sendServerMessage(const TQByteArray &msg)
Sends a message to the KMessageServer.
Definition: kmessageclient.cpp:140
KMessageClient(TQObject *parent=0, const char *name=0)
Constructor.
Definition: kmessageclient.cpp:51
void unlock()
Deliver every message that was delayed by lock() and actually deliver all messages that get received ...
Definition: kmessageclient.cpp:359
virtual void processIncomingMessage(const TQByteArray &msg)
This slot is called from the signal KMessageIO::received whenever a message from the KMessageServer a...
Definition: kmessageclient.cpp:182
void setServer(const TQString &host, TQ_UINT16 port)
Connects the client to (another) server.
Definition: kmessageclient.cpp:66
virtual void processMessage(const TQByteArray &msg)
This slot is called from processIncomingMessage or processFirstMessage, depending on whether the clie...
Definition: kmessageclient.cpp:202