|
The MassDataServerThread class provides a server in a QThread instance. More...
Header: | #include <MassDataServerThread.hpp> |
Inherits: | QThread |
MassDataServerThread(qintptr socket_descriptor, const QByteArray &data, QObject *parent) | |
virtual | ~MassDataServerThread() |
virtual void | run() override |
QByteArray | m_data |
qintptr | m_socketDescriptor |
QTcpSocket * | mpa_tcpSocket |
Constructs a MassDataServerThread instance.
[virtual noexcept]
MassDataServerThread::~MassDataServerThread()Destructs this MassDataServerThread instance.
Deletes mpa_tcpSocket if non-nullptr.
[override virtual]
void MassDataServerThread::run()Reimplements: QThread::run().
Runs the task in this thread.
Allocates a new QTcpSocket and sets the m_socketDescriptor
. If the member m_data are not empty, writes the data to the socket and disconnects.
This variable holds the data to be served.
This variable holds the socket descriptor of the connection.
This variable holds the socket to be used for the connection.