| |
The MassDataServer class provides a network server. More...
| Header: | #include <MassDataServer.hpp> |
| Inherits: | QTcpServer |
| MassDataServer(QObject *parent = nullptr) | |
| virtual | ~MassDataServer() |
| void | serveData(const QByteArray &byte_array_to_serve) |
| void | error(QAbstractSocket::SocketError socket_error) |
| virtual void | incomingConnection(qintptr socket_descriptor) override |
Constructs a MassDataServer instance.
[virtual noexcept] MassDataServer::~MassDataServer()Destructs this MassDataServer instance.
[protected] void MassDataServer::error(QAbstractSocket::SocketError socket_error)Reports the socket_error to the console using qDebug().
[override virtual protected] void MassDataServer::incomingConnection(qintptr socket_descriptor)Reimplements: QTcpServer::incomingConnection(qintptr socketDescriptor).
Handles an incoming connection with socket descriptor socket_descriptor.
If the connection is effective, that is, if a QTcpSocket client could be allocated and configured with socket_descriptor, that client is appended to the m_clients list of clients.
Sets to this MassDataServer instance the data to be served in byte_array.