| |
The MassDataServer class provides a network server. More...
| Header: | #include <MassDataServer.hpp> |
| MassDataServer(QObject *parent = nullptr) | |
| virtual | ~MassDataServer() |
| void | serveData(const QByteArray &byte_array) |
| void | error(QTcpSocket::SocketError socket_error) |
| virtual void | incomingConnection(qintptr socket_descriptor) override |
| QByteArray | m_data |
Constructs a MassDataServer instance.
[virtual noexcept] MassDataServer::~MassDataServer()Destructs this MassDataServer instance.
[protected] void MassDataServer::error(QTcpSocket::SocketError socket_error)Reports the socket_error to the console using qDebug().
[override virtual protected] void MassDataServer::incomingConnection(qintptr socket_descriptor)Handles an incoming connection with socket descriptor socket_descriptor.
If the member m_data are not empty, allocates a MassDataServerThread to serve these data.
Sets to this MassDataServer instance the data to be served in byte_array.
This variable holds the data to be served.