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());
virtual void connectToHost(const QString &hostName, quint16 port, QIODevice::OpenMode openMode, QAbstractSocket::NetworkLayerProtocol protocol)
Definition: kmessageio.h:43
void connectionBroken()
This signal is emitted when the connection is closed.
Running
Q_EMITQ_EMIT
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
ConnectedState
void send(const QByteArray &msg) override
Overwritten slot method from KMessageIO.
Definition: kmessageio.cpp:108
void clear()
void finished(int exitCode)
void setOutputChannelMode(OutputChannelMode mode)
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
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
void readyReadStandardOutput()
QByteArray::iterator begin()
void disconnected()
void chop(int n)
ExitStatus
QString peerName() const const
void readyRead()
void errorOccurred(QAbstractSocket::SocketError socketError)
void readyReadStandardError()
quint16 peerPort() const const
void received(const QByteArray &msg)
This signal is emitted when /e send() on the connected KMessageIO object is called.
bool isConnected() const override
Returns true if the socket is in state /e connected.
Definition: kmessageio.cpp:103
ScriptableExtension * host() const
bool isEmpty() const const
void resize(int size)
SeparateChannels
const char * constData() const const
void send(const QByteArray &msg) override
Overwritten slot method from KMessageIO.
Definition: kmessageio.cpp:219
virtual qint64 bytesAvailable() const const override
virtual bool setSocketDescriptor(qintptr socketDescriptor, QAbstractSocket::SocketState socketState, QIODevice::OpenMode openMode)
KMessageSocket(const QString &host, quint16 port, QObject *parent=nullptr)
Connects to a server socket on /e host with /e port.
Definition: kmessageio.cpp:67
bool isConnected() const override
Returns true, if the object is connected to another instance.
Definition: kmessageio.cpp:214
int size() const const
Definition: kmessageio.h:278
QDataStream & writeBytes(const char *s, uint len)
KMessageIO(QObject *parent=nullptr)
The usual QObject constructor, does nothing else.
Definition: kmessageio.cpp:23
char * data()
QAbstractSocket::SocketState state() const const
StandardError
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Dec 1 2023 04:08:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Dec 1 2023 04:08:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.