KDEGames
kmessageio.h
This class implements the message communication using function calls directly.
Definition kmessageio.h:279
void send(const QByteArray &msg) override
Overwritten slot method from KMessageIO.
Definition kmessageio.cpp:219
KMessageDirect(KMessageDirect *partner=nullptr, QObject *parent=nullptr)
Creates an object and connects it to the object given in the first parameter.
Definition kmessageio.cpp:185
bool isConnected() const override
Returns true, if the object is connected to another instance.
Definition kmessageio.cpp:214
This abstract base class represents one end of a message connections between two clients.
Definition kmessageio.h:44
virtual void send(const QByteArray &msg)=0
This slot sends the data block in /e msg to the connected object, that will emit /e received().
void connectionBroken()
This signal is emitted when the connection is closed.
void received(const QByteArray &msg)
This signal is emitted when /e send() on the connected KMessageIO object is called.
This class implements the message communication using a TCP/IP socket.
Definition kmessageio.h:150
KMessageSocket(const QString &host, quint16 port, QObject *parent=nullptr)
Connects to a server socket on /e host with /e port.
Definition kmessageio.cpp:67
void send(const QByteArray &msg) override
Overwritten slot method from KMessageIO.
Definition kmessageio.cpp:108
bool isConnected() const override
Returns true if the socket is in state /e connected.
Definition kmessageio.cpp:103
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
ExitStatus
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.