KDEGames
kmessageio.cpp
252 connect(mProcess, &KProcess::readyReadStandardOutput, this, &KMessageProcess::slotReceivedStdout);
253 connect(mProcess, &KProcess::readyReadStandardError, this, &KMessageProcess::slotReceivedStderr);
254 connect(mProcess, static_cast<void (KProcess::*)(int, QProcess::ExitStatus)>(&KProcess::finished), this, &KMessageProcess::slotProcessExited);
271 qCDebug(KDEGAMESPRIVATE_KGAME_LOG) << "@@@KMessageProcess:: SEND(" << msg.size() << ") to process";
275 qCDebug(KDEGAMESPRIVATE_KGAME_LOG) << "@@@KMessageProcess:: cannot write to stdin, no process available";
330 qCDebug(KDEGAMESPRIVATE_KGAME_LOG) << ": Cookie error...transmission failure...serious problem...";
344 std::copy(mReceiveBuffer.begin() + 2 * sizeof(long), mReceiveBuffer.begin() + len, msg.begin());
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
void connectionBroken()
This signal is emitted when the connection is closed.
virtual bool isConnected() const
This method returns the status of the object, whether it is already (or still) connected to another K...
Definition kmessageio.cpp:49
void received(const QByteArray &msg)
This signal is emitted when /e send() on the connected KMessageIO object is called.
KMessageIO(QObject *parent=nullptr)
The usual QObject constructor, does nothing else.
Definition kmessageio.cpp:23
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
SeparateChannels
void setOutputChannelMode(OutputChannelMode mode)
ConnectedState
virtual qint64 bytesAvailable() const const override
void connectToHost(const QHostAddress &address, quint16 port, OpenMode openMode)
void disconnected()
void errorOccurred(QAbstractSocket::SocketError socketError)
QString peerName() const const
quint16 peerPort() const const
virtual bool setSocketDescriptor(qintptr socketDescriptor, SocketState socketState, OpenMode openMode)
SocketState state() const const
iterator begin()
void chop(qsizetype n)
void clear()
const char * constData() const const
char * data()
bool isEmpty() const const
void resize(qsizetype newSize, char c)
qsizetype size() const const
QDataStream & writeBytes(const char *s, uint len)
QString toString() const const
virtual bool canReadLine() const const
QByteArray readAll()
QByteArray readLine(qint64 maxSize)
void readyRead()
qint64 write(const QByteArray &data)
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void deleteLater()
ExitStatus
StandardError
Running
void finished(int exitCode, QProcess::ExitStatus exitStatus)
void kill()
void readyReadStandardError()
void readyReadStandardOutput()
void setReadChannel(ProcessChannel channel)
QProcess::ProcessState state() const const
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.