kmessageclient.h
307 void forwardReceived (const TQByteArray &msg, TQ_UINT32 senderID, const TQValueList <TQ_UINT32> &receivers);
void processFirstMessage()
Called from unlock() (using TQTimer::singleShot) until all delayed messages are delivered.
Definition kmessageclient.cpp:305
const TQValueList< TQ_UINT32 > & clientList() const
Definition kmessageclient.cpp:113
void setServer(const TQString &host, TQ_UINT16 port)
Connects the client to (another) server.
Definition kmessageclient.cpp:66
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,...
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 aboutToDisconnect(TQ_UINT32 id)
This signal is emitted right before the client disconnects.
void broadcastReceived(const TQByteArray &msg, TQ_UINT32 senderID)
This signal is emitted when the client receives a broadcast message from the KMessageServer,...
void disconnect()
Corresponds to setServer(0); but also emits the connectionBroken signal.
Definition kmessageclient.cpp:342
void connectionBroken()
This signal is emitted when the connection to the KMessageServer is broken.
void adminStatusChanged(bool isAdmin)
This signal is emitted when this client becomes the admin client or when it loses the admin client st...
unsigned int delayedMessageCount() const
Definition kmessageclient.cpp:368
void sendBroadcast(const TQByteArray &msg)
Sends a message to all the clients connected to the server, including ourself.
Definition kmessageclient.cpp:150
void unlock()
Deliver every message that was delayed by lock() and actually deliver all messages that get received ...
Definition kmessageclient.cpp:359
void serverMessageReceived(const TQByteArray &msg, bool &unknown)
This signal is emitted on every message that came from the server.
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
virtual void removeBrokenConnection()
This slot is called from the signal KMessageIO::connectionBroken.
Definition kmessageclient.cpp:321
void eventClientConnected(TQ_UINT32 clientID)
This signal is emitted when another client has connected to the server.
void sendForward(const TQByteArray &msg, const TQValueList< TQ_UINT32 > &clients)
Sends a message to all the clients in a list.
Definition kmessageclient.cpp:162
void sendServerMessage(const TQByteArray &msg)
Sends a message to the KMessageServer.
Definition kmessageclient.cpp:140
virtual void processMessage(const TQByteArray &msg)
This slot is called from processIncomingMessage or processFirstMessage, depending on whether the clie...
Definition kmessageclient.cpp:202
This abstract base class represents one end of a message connections between two clients.
Definition kmessageio.h:57
A server for message sending and broadcasting, using TCP/IP connections.
Definition kmessageserver.h:176